Fix: 修复Arduino ESP32板卡下一些分类显示异常
This commit is contained in:
BIN
boards/default/arduino_esp32/images/ESP32s2_b49570e2.jpg
Normal file
BIN
boards/default/arduino_esp32/images/ESP32s2_b49570e2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 444 KiB |
File diff suppressed because one or more lines are too long
@@ -64,6 +64,11 @@ const BOARDS_PIN_DEF = {
|
|||||||
path: require("../media/ESP32s3.jpg"),
|
path: require("../media/ESP32s3.jpg"),
|
||||||
height: 350,
|
height: 350,
|
||||||
width: 500
|
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();
|
const fsType = this.getFSType();
|
||||||
let arch = 'x64';
|
let arch = 'x64';
|
||||||
switch (process.arch) {
|
switch (process.arch) {
|
||||||
case 'arm64':
|
case 'arm64':
|
||||||
case 'arm':
|
case 'arm':
|
||||||
arch = 'arm';
|
arch = 'arm';
|
||||||
break;
|
break;
|
||||||
case 'ia32':
|
case 'ia32':
|
||||||
arch = 'x32';
|
arch = 'x32';
|
||||||
break;
|
break;
|
||||||
case 'x64':
|
case 'x64':
|
||||||
default:
|
default:
|
||||||
arch = 'x64';
|
arch = 'x64';
|
||||||
}
|
}
|
||||||
const platform = Env.currentPlatform;
|
const platform = Env.currentPlatform;
|
||||||
const fsToolInfo = FS_INFO[`mk${fsType}`];
|
const fsToolInfo = FS_INFO[`mk${fsType}`];
|
||||||
|
|||||||
Reference in New Issue
Block a user