Skip to content

Commit 998b3b7

Browse files
committed
updated file filter
uses much more effective file type filtering method
1 parent bfe364b commit 998b3b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PinetimeFlasher.pyw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class ptflasher(QMainWindow):
112112
self.progress.setValue(10)
113113

114114
if os.path.exists(source):
115-
if source[-3:] in ("bin", "hex"): # supported file types filter
115+
if os.path.splitext(source)[-1] in (".bin", ".hex"): # supported file types filter
116116
if shutil.which('openocd') is not None:
117117
self.status.setText('Flashing...')
118118
self.status.repaint()

0 commit comments

Comments
 (0)