We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfe364b commit 998b3b7Copy full SHA for 998b3b7
PinetimeFlasher.pyw
@@ -112,7 +112,7 @@ class ptflasher(QMainWindow):
112
self.progress.setValue(10)
113
114
if os.path.exists(source):
115
- if source[-3:] in ("bin", "hex"): # supported file types filter
+ if os.path.splitext(source)[-1] in (".bin", ".hex"): # supported file types filter
116
if shutil.which('openocd') is not None:
117
self.status.setText('Flashing...')
118
self.status.repaint()
0 commit comments