File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,12 @@ private void createAndUpload(){
219
219
return ;
220
220
}
221
221
222
- File partitionsFile = new File (platform .getFolder () + "/tools/partitions" , partitions + ".csv" );
222
+ // A custom partitions.csv in the sketch folder overrides the board preferences
223
+ // This is hard coded in https://github.com/espressif/arduino-esp32/blob/master/platform.txt
224
+ File partitionsFile = new File (editor .getSketch ().getFolder (), "partitions.csv" );
225
+ if (!partitionsFile .exists () || !partitionsFile .isFile ()) {
226
+ partitionsFile = new File (platform .getFolder () + "/tools/partitions" , partitions + ".csv" );
227
+ }
223
228
if (!partitionsFile .exists () || !partitionsFile .isFile ()) {
224
229
System .err .println ();
225
230
editor .statusError ("SPIFFS Error: partitions file " + partitions + ".csv not found!" );
You can’t perform that action at this time.
0 commit comments