7354:d6aec4160f6b | 7355:c7146f7e06aa |
---|---|
173 "-m", "esptool", | 173 "-m", "esptool", |
174 "--port", self.microPython.getCurrentPort(), | 174 "--port", self.microPython.getCurrentPort(), |
175 "erase_flash", | 175 "erase_flash", |
176 ] | 176 ] |
177 dlg = E5ProcessDialog(self.tr("'esptool erase_flash' Output"), | 177 dlg = E5ProcessDialog(self.tr("'esptool erase_flash' Output"), |
178 self.tr("Erase Flash")) | 178 self.tr("Erase Flash"), |
179 showProgress=True) | |
179 res = dlg.startProcess(sys.executable, flashArgs) | 180 res = dlg.startProcess(sys.executable, flashArgs) |
180 if res: | 181 if res: |
181 dlg.exec_() | 182 dlg.exec_() |
182 | 183 |
183 @pyqtSlot() | 184 @pyqtSlot() |
206 "write_flash", | 207 "write_flash", |
207 flashAddress, | 208 flashAddress, |
208 firmware, | 209 firmware, |
209 ] | 210 ] |
210 dlg = E5ProcessDialog(self.tr("'esptool write_flash' Output"), | 211 dlg = E5ProcessDialog(self.tr("'esptool write_flash' Output"), |
211 self.tr("Flash MicroPython Firmware")) | 212 self.tr("Flash MicroPython Firmware"), |
213 showProgress=True) | |
212 res = dlg.startProcess(sys.executable, flashArgs) | 214 res = dlg.startProcess(sys.executable, flashArgs) |
213 if res: | 215 if res: |
214 dlg.exec_() | 216 dlg.exec_() |
215 | 217 |
216 @pyqtSlot() | 218 @pyqtSlot() |
230 "write_flash", | 232 "write_flash", |
231 flashAddress.lower(), | 233 flashAddress.lower(), |
232 firmware, | 234 firmware, |
233 ] | 235 ] |
234 dlg = E5ProcessDialog(self.tr("'esptool write_flash' Output"), | 236 dlg = E5ProcessDialog(self.tr("'esptool write_flash' Output"), |
235 self.tr("Flash Additional Firmware")) | 237 self.tr("Flash Additional Firmware"), |
238 showProgress=True) | |
236 res = dlg.startProcess(sys.executable, flashArgs) | 239 res = dlg.startProcess(sys.executable, flashArgs) |
237 if res: | 240 if res: |
238 dlg.exec_() | 241 dlg.exec_() |
239 | 242 |
240 @pyqtSlot() | 243 @pyqtSlot() |
256 "read_flash", | 259 "read_flash", |
257 "0x0", flashSize, | 260 "0x0", flashSize, |
258 firmware, | 261 firmware, |
259 ] | 262 ] |
260 dlg = E5ProcessDialog(self.tr("'esptool read_flash' Output"), | 263 dlg = E5ProcessDialog(self.tr("'esptool read_flash' Output"), |
261 self.tr("Backup Firmware")) | 264 self.tr("Backup Firmware"), |
265 showProgress=True) | |
262 res = dlg.startProcess(sys.executable, flashArgs) | 266 res = dlg.startProcess(sys.executable, flashArgs) |
263 if res: | 267 if res: |
264 dlg.exec_() | 268 dlg.exec_() |
265 | 269 |
266 @pyqtSlot() | 270 @pyqtSlot() |
289 flashArgs.extend([ | 293 flashArgs.extend([ |
290 "0x0", | 294 "0x0", |
291 firmware, | 295 firmware, |
292 ]) | 296 ]) |
293 dlg = E5ProcessDialog(self.tr("'esptool write_flash' Output"), | 297 dlg = E5ProcessDialog(self.tr("'esptool write_flash' Output"), |
294 self.tr("Restore Firmware")) | 298 self.tr("Restore Firmware"), |
299 showProgress=True) | |
295 res = dlg.startProcess(sys.executable, flashArgs) | 300 res = dlg.startProcess(sys.executable, flashArgs) |
296 if res: | 301 if res: |
297 dlg.exec_() | 302 dlg.exec_() |
298 | 303 |
299 @pyqtSlot() | 304 @pyqtSlot() |