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