浏览代码

pebble-commander: print CRC error message if there is a mismatch

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Gerard Marull-Paretas 3 月之前
父节点
当前提交
27379e5d12
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      python_libs/pebble-commander/pebble/commander/_commands/imaging.py

+ 3 - 0
python_libs/pebble-commander/pebble/commander/_commands/imaging.py

@@ -175,6 +175,9 @@ def _load(connection, image, progress, verbose, address):
     if verbose:
         print('Retries: %d' % retries)
 
+    if result_crc != image_crc:
+        print('CRC mismatch, got 0x%08X but expected %08X' % (result_crc, image_crc))
+
     return result_crc == image_crc