No ESP in non-white
@@ -65,6 +65,7 @@ def flash_release(path=None, st_serial=None):
panda.close()
# flashing ESP
+ if panda.is_white():
status("4. Flashing ESP (slow!)")
align = lambda x, sz=0x1000: x+"\xFF"*((sz-len(x)) % sz)
esp = ESPROM(st_serial)
@@ -78,6 +79,8 @@ def flash_release(path=None, st_serial=None):
del flasher
del esp
time.sleep(1)
+ else:
+ status("4. No ESP in non-white panda")
# check for connection
status("5. Verifying version")
