We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a41ef5c commit e4c702fCopy full SHA for e4c702f
src/ESP32FS.java
@@ -43,6 +43,7 @@
43
import processing.app.Sketch;
44
import processing.app.tools.Tool;
45
import processing.app.helpers.ProcessUtils;
46
+import processing.app.helpers.PreferencesMap;
47
import processing.app.debug.TargetPlatform;
48
49
import org.apache.commons.codec.digest.DigestUtils;
@@ -536,16 +537,10 @@ private void eraseFlash(){
536
537
}
538
539
- private String getChip() {
540
- String targetBoardId = BaseNoGui.getTargetBoard().getId();
541
-
542
- if (targetBoardId.contains("s2")) {
543
- return "esp32s2";
544
- }
545
- else {
546
- return "esp32";
547
548
+ private String getChip(){
+ PreferencesMap prefs = BaseNoGui.getTargetBoard().getPreferences();
+ String mcu = prefs.get("build.mcu", "esp32");
+ return mcu;
549
550
551
public void run() {
0 commit comments