File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -133,13 +133,16 @@ private void createAndUpload(){
133
133
134
134
TargetPlatform platform = BaseNoGui .getTargetPlatform ();
135
135
136
+ String esptoolCmd = platform .getTool ("esptool" ).get ("cmd" );
136
137
File esptool ;
137
- if (!PreferencesData .get ("runtime.os" ).contentEquals ("windows" )) esptool = new File (platform .getFolder ()+"/tools" , "esptool" );
138
- else esptool = new File (platform .getFolder ()+"/tools" , "esptool.exe" );
138
+ esptool = new File (platform .getFolder ()+"/tools" , esptoolCmd );
139
139
if (!esptool .exists ()){
140
- System .err .println ();
141
- editor .statusError ("SPIFFS Error: esptool not found!" );
142
- return ;
140
+ esptool = new File (PreferencesData .get ("runtime.tools.esptool.path" ), esptoolCmd );
141
+ if (!esptool .exists ()) {
142
+ System .err .println ();
143
+ editor .statusError ("SPIFFS Error: esptool not found!" );
144
+ return ;
145
+ }
143
146
}
144
147
145
148
File tool ;
You can’t perform that action at this time.
0 commit comments