Skip to content

Commit

Permalink
Merge pull request #1093 from DavidBuchanan314/patch-1
Browse files Browse the repository at this point in the history
Update xflash_lib.py: fix shutdown()
  • Loading branch information
bkerler committed Jul 4, 2024
2 parents 0e9b0b2 + 5730924 commit 8d61842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtkclient/Library/DA/xflash/xflash_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ def shutdown(self, async_mode: int = 0, dl_bit: int = 0, bootmode: ShutDownModes
if status == 0:
hasflags = 0
# bootmode 0: shutdown 1: home screen, 2: fastboot
if async_mode or dl_bit or bootmode != bootmode.NORMAL:
if async_mode or dl_bit or bootmode != self.ShutDownModes.NORMAL:
hasflags = 1
enablewdt = 0 # Disable wdt
dont_resetrtc = 0 # Reset RTC
Expand Down

0 comments on commit 8d61842

Please sign in to comment.