mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 19:25:05 -05:00
Merge pull request #1093 from DavidBuchanan314/patch-1
Update xflash_lib.py: fix shutdown()
This commit is contained in:
commit
8d618425c1
1 changed files with 1 additions and 1 deletions
|
@ -891,7 +891,7 @@ class DAXFlash(metaclass=LogBase):
|
||||||
if status == 0:
|
if status == 0:
|
||||||
hasflags = 0
|
hasflags = 0
|
||||||
# bootmode 0: shutdown 1: home screen, 2: fastboot
|
# 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
|
hasflags = 1
|
||||||
enablewdt = 0 # Disable wdt
|
enablewdt = 0 # Disable wdt
|
||||||
dont_resetrtc = 0 # Reset RTC
|
dont_resetrtc = 0 # Reset RTC
|
||||||
|
|
Loading…
Reference in a new issue