diff --git a/boards/default_src/micropython_esp32s3/origin/build/Mixgo_Nova_lib-v1.21.0.bin b/boards/default_src/micropython_esp32s3/origin/build/Mixgo_Nova_lib-v1.21.0.bin index 445660f1..f616ccca 100644 Binary files a/boards/default_src/micropython_esp32s3/origin/build/Mixgo_Nova_lib-v1.21.0.bin and b/boards/default_src/micropython_esp32s3/origin/build/Mixgo_Nova_lib-v1.21.0.bin differ diff --git a/boards/default_src/micropython_esp32s3/origin/build/Mixgo_Sant_lib-v1.13.0.bin b/boards/default_src/micropython_esp32s3/origin/build/Mixgo_Sant_lib-v1.13.0.bin index 987d49cb..d20e5137 100644 Binary files a/boards/default_src/micropython_esp32s3/origin/build/Mixgo_Sant_lib-v1.13.0.bin and b/boards/default_src/micropython_esp32s3/origin/build/Mixgo_Sant_lib-v1.13.0.bin differ diff --git a/boards/default_src/micropython_esp32s3/origin/build/lib/camera.py b/boards/default_src/micropython_esp32s3/origin/build/lib/camera.py index 302a0b74..5843d1b9 100644 --- a/boards/default_src/micropython_esp32s3/origin/build/lib/camera.py +++ b/boards/default_src/micropython_esp32s3/origin/build/lib/camera.py @@ -25,4 +25,10 @@ class GC032A(Camera): def deinit(self): super().deinit() - onboard_bot.cam_en(0,100) + onboard_bot.cam_en(0, 100) + + def display(self, show=True): + if show: + super().display() + else: + super().display_stop() diff --git a/common/modules/mixly-modules/web/burn-upload.js b/common/modules/mixly-modules/web/burn-upload.js index 2284f3f4..c4f8f01a 100644 --- a/common/modules/mixly-modules/web/burn-upload.js +++ b/common/modules/mixly-modules/web/burn-upload.js @@ -285,8 +285,10 @@ BU.burnWithEsptool = async (binFile, erase) => { } catch (error) { Debug.error(error); statusBarTerminal.addValue(`\n${error.toString()}\n`); - if (port.connected) { + try { await transport.disconnect(); + } catch (error) { + Debug.error(error); } BU.progressLayer.hide(); return; @@ -309,8 +311,10 @@ BU.burnWithEsptool = async (binFile, erase) => { } catch (error) { statusBarTerminal.addValue("Failed!\n" + Msg.Lang['shell.bin.readFailed'] + "!\n"); statusBarTerminal.addValue("\n" + e + "\n", true); - if (port.connected) { + try { await transport.disconnect(); + } catch (error) { + Debug.error(error); } BU.progressLayer.hide(); return; @@ -338,8 +342,10 @@ BU.burnWithEsptool = async (binFile, erase) => { BU.progressLayer.hide(); statusBarTerminal.addValue(`==${Msg.Lang['shell.burnFailed']}==\n`); } finally { - if (port.connected) { + try { await transport.disconnect(); + } catch (error) { + Debug.error(error); } } }