Update: web下板卡烧录固件前先擦除Flash

This commit is contained in:
王立帮
2024-08-30 09:04:33 +08:00
parent b779c04ceb
commit d217529c26

View File

@@ -302,6 +302,7 @@ BU.burnWithEsptool = async () => {
}
});
try {
await esploader.eraseFlash();
await esploader.writeFlash(flashOptions);
layer.msg(Msg.Lang['shell.burnSucc'], { time: 1000 });
statusBarTerminal.addValue(`==${Msg.Lang['shell.burnSucc']}==\n`);