fix(core): 修复 compiler 下nano和nanoOldBootloader上传时的配置颠倒
This commit is contained in:
@@ -340,9 +340,9 @@ class WebCompilerArduShell {
|
|||||||
if (boardId === 'nano') {
|
if (boardId === 'nano') {
|
||||||
const cpu = Boards.getSelectedBoardConfigParam('cpu');
|
const cpu = Boards.getSelectedBoardConfigParam('cpu');
|
||||||
if (cpu === 'atmega328old') {
|
if (cpu === 'atmega328old') {
|
||||||
boardName = 'nano';
|
|
||||||
} else {
|
|
||||||
boardName = 'nanoOldBootloader';
|
boardName = 'nanoOldBootloader';
|
||||||
|
} else {
|
||||||
|
boardName = 'nano';
|
||||||
}
|
}
|
||||||
} else if (boardId === 'pro') {
|
} else if (boardId === 'pro') {
|
||||||
boardName = 'proMini';
|
boardName = 'proMini';
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user