mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add binary flag to FW file read.
This commit is contained in:
parent
db541f51ca
commit
dff1054171
@ -199,7 +199,7 @@ class Bootloader:
|
||||
|
||||
fw_path = self.fw_path_entry.get_text()
|
||||
try:
|
||||
with open(fw_path, 'r') as f:
|
||||
with open(fw_path, 'rb') as f:
|
||||
buf= f.read()
|
||||
except Exception as e:
|
||||
self.show_message_dialog(gtk.MESSAGE_ERROR, "Failed to open file %s"%str(e))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user