Skip to content

Commit

Permalink
scripts: hid_configurator: Fix interrupted DFU check
Browse files Browse the repository at this point in the history
Change fixes check for interrupted DFU process.

Jira: NCSDK-7566

Signed-off-by: Marek Pieta <[email protected]>
  • Loading branch information
MarekPieta authored and tejlmand committed Jan 7, 2021
1 parent 667d0f5 commit 6edb526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/hid_configurator/modules/dfu.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def dfu_checkpoint(img_csum, img_length, offset):
if (dfu_info.get_img_length() != img_length) or (dfu_info.get_img_csum() != img_csum):
print('Invalid sync information {}'.format(dfu_info))
return False
if (not dfu_info.is_busy()) and (dfu_info.get_img_length() != img_length):
if not dfu_info.is_busy():
print('DFU interrupted by device')
return False
if dfu_info.is_storing():
Expand Down

0 comments on commit 6edb526

Please sign in to comment.