diff --git a/common/modules/mixly-modules/common/statusbar-serial.js b/common/modules/mixly-modules/common/statusbar-serial.js index d312917c..41e0c66b 100644 --- a/common/modules/mixly-modules/common/statusbar-serial.js +++ b/common/modules/mixly-modules/common/statusbar-serial.js @@ -458,12 +458,6 @@ class StatusBarSerial extends PageBase { async open() { await this.#serial_.open(this.#config_.baud); - await this.#serial_.sleep(200); - try { - await this.#serial_.setDTRAndRTS(this.#config_.dtr, this.#config_.rts); - } catch (error) { - Debug.error(error); - } if (SELECTED_BOARD?.serial?.ctrlCBtn) { await this.#serial_.sleep(500); await this.#serial_.interrupt(); diff --git a/common/modules/mixly-modules/deps.json b/common/modules/mixly-modules/deps.json index d2f04a36..b8b446e3 100644 --- a/common/modules/mixly-modules/deps.json +++ b/common/modules/mixly-modules/deps.json @@ -1508,7 +1508,6 @@ "Mixly.Env", "Mixly.Msg", "Mixly.Ampy", - "Mixly.Config", "Mixly.Web" ], "provide": [ diff --git a/common/modules/mixly-modules/web/ampy.js b/common/modules/mixly-modules/web/ampy.js index 81f4618e..fc3e8a02 100644 --- a/common/modules/mixly-modules/web/ampy.js +++ b/common/modules/mixly-modules/web/ampy.js @@ -5,7 +5,6 @@ goog.require('Mustache'); goog.require('Mixly.Env'); goog.require('Mixly.Msg'); goog.require('Mixly.Ampy'); -goog.require('Mixly.Config'); goog.require('Mixly.Web'); goog.provide('Mixly.Web.Ampy'); @@ -13,7 +12,6 @@ const { Env, Msg, Ampy, - Config, Web } = Mixly; @@ -185,14 +183,6 @@ class AmpyExt extends Ampy { this.#active_ = true; await this.#device_.open(115200); await this.#device_.sleep(500); - const { SELECTED_BOARD } = Config; - if (SELECTED_BOARD?.serial - && SELECTED_BOARD.serial?.dtr !== undefined - && SELECTED_BOARD.serial?.rts !== undefined) { - const { dtr, rts } = SELECTED_BOARD.serial; - await this.#device_.setDTRAndRTS(dtr, rts); - } - await this.#device_.sleep(500); await this.#device_.sendBuffer([2]); if (!await this.interrupt()) { throw new Error(Msg.Lang['ampy.interruptFailed']);