Skip to content

Commit ed3bf53

Browse files
Double-indirect the ESP32 partition file name (#71)
Fixes #69 The partition name menu selection's value only points to the proper line of build.properties, and is not always the file name for ESP32 partitions. Use the label to indirect to the board props to select the right file.
1 parent b8871e8 commit ed3bf53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "arduino-littlefs-upload",
33
"displayName": "arduino-littlefs-upload",
44
"description": "Build and uploads LittleFS filesystems for the Arduino-Pico RP2040 core, ESP8266 core, or ESP32 core under Arduino IDE 2.2.1 or higher",
5-
"version": "1.5.0",
5+
"version": "1.5.1",
66
"engines": {
77
"vscode": "^1.82.0"
88
},

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function getSelectedPartitionScheme(boardDetails : BoardDetails) : string | unde
152152
return;
153153
}
154154

155-
return selectedOption.value;
155+
return boardDetails.buildProperties["menu.PartitionScheme." + selectedOption.value + ".build.partitions"];
156156
}
157157

158158
function getDefaultPartitionScheme(boardDetails : BoardDetails) : string | undefined {

0 commit comments

Comments
 (0)