stm32_mem: Fix native crashing in dfu-detach when repeatedly flashed.

このコミットが含まれているのは:
Uwe Bonnes 2019-09-27 12:31:08 +02:00
コミット fc3abf26ef
1個のファイルの変更4行の追加1行の削除

ファイルの表示

@ -174,7 +174,10 @@ if __name__ == "__main__":
print("Failed to read device state! Assuming APP_IDLE")
state = dfu.STATE_APP_IDLE
if state == dfu.STATE_APP_IDLE:
dfudev.detach()
try:
dfudev.detach()
except:
pass
dfudev.release()
print("Invoking DFU Device")
timeout = 0