From e1fbee6ef13f2bda4ed455ccc1a649994c3d81bf Mon Sep 17 00:00:00 2001 From: ranchuan Date: Mon, 3 Mar 2025 11:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E9=81=BF=E4=B8=8B=E8=BD=BD=E5=9B=BA?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E5=8F=AF=E8=83=BD=E8=AF=86=E5=88=AB=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E6=A0=87=E5=BF=97=E5=AD=97=E7=AC=A6=E4=B8=B2=E7=9A=84?= =?UTF-8?q?=E9=A3=8E=E9=99=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kunlun.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kunlun.py b/kunlun.py index ca0f42f..6ec7162 100644 --- a/kunlun.py +++ b/kunlun.py @@ -75,8 +75,7 @@ def burn_flash_bin(s_port:serial.Serial, x_modem:xmodem.XMODEM, f_file): continue print_device_str(tmp) s_info += tmp - # if(s_info.find(b'CCC')>=0 and bytes2read==1): - if(s_info.find(b'Recieving FLASH-IMAGE in xmodem : C')>=0): + if(s_info.find(b'CCC')>=0 and bytes2read==1) or (s_info.find(b'Recieving FLASH-IMAGE in xmodem : C')>=0): m_flash=True else: m_flash=False