Merge pull request #1093 from DavidBuchanan314/patch-1

Update xflash_lib.py: fix shutdown()
This commit is contained in:
Bjoern Kerler 2024-07-04 20:41:14 +02:00 committed by GitHub
commit 8d618425c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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