Browse Source

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

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Gerard Marull-Paretas 3 months ago
parent
commit
27379e5d12

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

@@ -175,6 +175,9 @@ def _load(connection, image, progress, verbose, address):
     if verbose:
     if verbose:
         print('Retries: %d' % retries)
         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
     return result_crc == image_crc