chore(core): ESPTool 调整为 esptooljs

This commit is contained in:
王立帮
2025-05-09 16:50:42 +08:00
parent 3b10f7742c
commit fb5303c311
5 changed files with 19 additions and 18 deletions

View File

@@ -2,7 +2,7 @@ goog.loadJs('web', () => {
goog.require('layui');
goog.require('avrbro');
goog.require('ESPTool');
goog.require('esptooljs');
goog.require('AdafruitESPTool');
goog.require('CryptoJS');
goog.require('dayjs.duration');
@@ -29,7 +29,7 @@ const {
const { Serial } = Web;
const { layer } = layui;
const { ESPLoader, Transport } = ESPTool;
const { ESPLoader, Transport } = esptooljs;
function hexToBinaryString (hex) {
@@ -98,7 +98,6 @@ class WebCompilerArduShell {
statusBarTerminal.setValue(`${Msg.Lang['shell.compiling']}...\n`);
this.shell.compile(code)
.then((info) => {
console.log(info)
this.endCallback(info.code, info.time);
})
.catch((error) => {
@@ -271,7 +270,6 @@ class WebCompilerArduShell {
}
async uploadWithEsptool(port, files) {
console.log(port, files)
const { mainStatusBarTabs } = Mixly;
const statusBarTerminal = mainStatusBarTabs.getStatusBarById('output');
let esploader = null;