From 5730924fc29fc480510230572425606b1ebd6175 Mon Sep 17 00:00:00 2001 From: David Buchanan Date: Thu, 4 Jul 2024 13:43:48 +0100 Subject: [PATCH] Update xflash_lib.py: fix shutdown() --- mtkclient/Library/DA/xflash/xflash_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtkclient/Library/DA/xflash/xflash_lib.py b/mtkclient/Library/DA/xflash/xflash_lib.py index b40e621..afe9720 100755 --- a/mtkclient/Library/DA/xflash/xflash_lib.py +++ b/mtkclient/Library/DA/xflash/xflash_lib.py @@ -891,7 +891,7 @@ class DAXFlash(metaclass=LogBase): 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