解决赋码未结束时打开急停会导致一直忙的bug

This commit is contained in:
ranchuan
2023-09-14 18:01:54 +08:00
parent 9f7ac06880
commit 9f9f6db125
5 changed files with 46 additions and 10 deletions

View File

@@ -164,9 +164,9 @@ def main():
with open(boot_dst,"wb") as f:
f.write(d)
print(boot_dst+" create boot file success.")
sql=mysql.sql()
if(sql.init(SQL_BOOT_PATH)==True):
sql.insert(boot_dst)
#sql=mysql.sql()
#if(sql.init(SQL_BOOT_PATH)==True):
# sql.insert(boot_dst)
else:
print("please build bootloader to create boot file")
if __name__=="__main__":