diff -r 845d3c572a94 -r 72f55caf6258 eric6/MicroPython/EspDevices.py --- a/eric6/MicroPython/EspDevices.py Sun Mar 28 18:51:40 2021 +0200 +++ b/eric6/MicroPython/EspDevices.py Sun Mar 28 18:51:58 2021 +0200 @@ -201,7 +201,7 @@ from .EspFirmwareSelectionDialog import EspFirmwareSelectionDialog dlg = EspFirmwareSelectionDialog() if dlg.exec() == QDialog.DialogCode.Accepted: - chip, firmware, flashMode, _ = dlg.getData() + chip, firmware, baudRate, flashMode, _ = dlg.getData() if chip == "esp8266": flashAddress = "0x0000" elif chip == "esp32": @@ -216,6 +216,10 @@ "--port", self.microPython.getCurrentPort(), "write_flash", ] + if baudRate != "115200": + flashArgs.extend([ + "--baud", baudRate + ]) if flashMode: flashArgs.extend([ "--flash_mode", flashMode @@ -239,7 +243,7 @@ from .EspFirmwareSelectionDialog import EspFirmwareSelectionDialog dlg = EspFirmwareSelectionDialog(addon=True) if dlg.exec() == QDialog.DialogCode.Accepted: - chip, firmware, flashMode, flashAddress = dlg.getData() + chip, firmware, baudRate, flashMode, flashAddress = dlg.getData() flashArgs = [ "-u", "-m", "esptool", @@ -247,6 +251,10 @@ "--port", self.microPython.getCurrentPort(), "write_flash", ] + if baudRate != "115200": + flashArgs.extend([ + "--baud", baudRate + ]) if flashMode: flashArgs.extend([ "--flash_mode", flashMode