Skip to content

Commit

Permalink
DFU for Multiple Devices Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyboxxx committed Jul 23, 2024
1 parent a474976 commit 4de6456
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dfu_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ def upload_clicked(self):
self.log("\nUSB Exception during flashing... Please reflash firmware!\n")
self.uploading = False
pydfu.exit_dfu()
self.log("Done. Please reset\n")
self.log(self.tr("Done. Please reset\n"))
self.groupbox_controls.setEnabled(True)
self.dfu_device = None
if self.checkBox_multipleDevices.isChecked():
self.timer.start()

def full_erase_clicked(self):
"""Ask an confirmation on erase click button event."""
Expand Down
11 changes: 9 additions & 2 deletions res/dfu.ui
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</property>
</widget>
</item>
<item row="2" column="0">
<item row="4" column="0" colspan="2">
<widget class="QPushButton" name="pushButton_upload">
<property name="enabled">
<bool>false</bool>
Expand All @@ -85,7 +85,14 @@
</property>
</widget>
</item>
<item row="2" column="1">
<item row="3" column="0" colspan="2">
<widget class="QCheckBox" name="checkBox_multipleDevices">
<property name="text">
<string>Enable Continuous DFU for Multiple Devices Upload</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="checkBox_massErase">
<property name="text">
<string>Full erase (Resets all settings)</string>
Expand Down

0 comments on commit 4de6456

Please sign in to comment.