fix(core): 修复 compiler 下nano和nanoOldBootloader上传时的配置颠倒

This commit is contained in:
王立帮
2025-05-25 08:20:22 +08:00
parent a21dd07182
commit b53548462a
2 changed files with 3 additions and 3 deletions

View File

@@ -340,9 +340,9 @@ class WebCompilerArduShell {
if (boardId === 'nano') {
const cpu = Boards.getSelectedBoardConfigParam('cpu');
if (cpu === 'atmega328old') {
boardName = 'nano';
} else {
boardName = 'nanoOldBootloader';
} else {
boardName = 'nano';
}
} else if (boardId === 'pro') {
boardName = 'proMini';

File diff suppressed because one or more lines are too long