Fix: 修复Arduino ESP32板卡下一些分类显示异常
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}`];
|
||||
|
||||
Reference in New Issue
Block a user