Skip to content

Conversation

stephb1377
Copy link

No description provided.

@stephb1377
Copy link
Author

Sorry but something was wrong on the merge request:

my modification is to add a methode:

  private String getChip() {
    String targetBoardId = BaseNoGui.getTargetBoard().getId();

    if (targetBoardId.contains("s2")) {
      return "esp32s2";
    }
    else {
      return "esp32";
    }

  } 

and call it each time you need to set "chip", ex:

sysExec(new String[]{esptool.getAbsolutePath(), "--chip", getChip(), "--port", serialPort, "--before", "default_reset", "--after", "hard_reset", "erase_flash"});

@lorol
Copy link
Owner

lorol commented Nov 10, 2020

Hi, I have no experience with merging etc. Will try ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants