diff --git a/tools/flash.py b/tools/flash.py index 4bb4411..2a701f4 100755 --- a/tools/flash.py +++ b/tools/flash.py @@ -56,7 +56,7 @@ def get_diff(a, b): def probe(): r = sread(0, 4, quiet = True); - if r != b'7\x03\x00\x81': + if r is None: eprint("ERROR: Probe failed! Check that the device is in bootloader mode.") return 1 return 0