Skip to content

Commit

Permalink
Update xflash_lib.py: fix shutdown()
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBuchanan314 authored Jul 4, 2024
1 parent 0e9b0b2 commit 5730924
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 5730924

Please sign in to comment.