Fix: 修复Arduino ESP32板卡下一些分类显示异常

This commit is contained in:
王立帮
2024-10-11 16:22:55 +08:00
parent 338c6689cf
commit ea8f4d8146
4 changed files with 16 additions and 11 deletions

View File

@@ -64,6 +64,11 @@ const BOARDS_PIN_DEF = {
path: require("../media/ESP32s3.jpg"),
height: 350,
width: 500
},
esp32s2_pin: {
path: require("../media/ESP32s2.jpg"),
height: 350,
width: 500
}
}

View File

@@ -73,16 +73,16 @@ export default class FSArduEsp32Handler extends FSBoardHandler {
const fsType = this.getFSType();
let arch = 'x64';
switch (process.arch) {
case 'arm64':
case 'arm':
arch = 'arm';
break;
case 'ia32':
arch = 'x32';
break;
case 'x64':
default:
arch = 'x64';
case 'arm64':
case 'arm':
arch = 'arm';
break;
case 'ia32':
arch = 'x32';
break;
case 'x64':
default:
arch = 'x64';
}
const platform = Env.currentPlatform;
const fsToolInfo = FS_INFO[`mk${fsType}`];