153 |
153 |
154 @pyqtSlot() |
154 @pyqtSlot() |
155 def __flashMicroPython(self): |
155 def __flashMicroPython(self): |
156 """ |
156 """ |
157 Private slot to flash a MicroPython firmware to the device. |
157 Private slot to flash a MicroPython firmware to the device. |
|
158 |
|
159 @exception ValueError raised to indicate an unsupported chip type |
158 """ |
160 """ |
159 from .EspFirmwareSelectionDialog import EspFirmwareSelectionDialog |
161 from .EspFirmwareSelectionDialog import EspFirmwareSelectionDialog |
160 dlg = EspFirmwareSelectionDialog() |
162 dlg = EspFirmwareSelectionDialog() |
161 if dlg.exec_() == QDialog.Accepted: |
163 if dlg.exec_() == QDialog.Accepted: |
162 chip, firmware, _ = dlg.getData() |
164 chip, firmware, _ = dlg.getData() |