add message when flashing failed

This commit is contained in:
hathach 2024-01-24 12:10:17 +07:00
parent 64f86ef8e7
commit 9d0df8ebc5
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
1 changed files with 1 additions and 0 deletions

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()