add message when flashing failed

This commit is contained in:
hathach
2024-01-24 12:10:17 +07:00
parent 64f86ef8e7
commit 9d0df8ebc5

View File

@@ -370,6 +370,7 @@ def main(config_file, board):
if ret.returncode == 0:
break
else:
print(f'Flashing failed, retry {i+1}')
time.sleep(1)
assert ret.returncode == 0, 'Flash failed\n' + ret.stdout.decode()