Add binary flag to FW file read.

This commit is contained in:
iabdalkader 2016-04-27 19:30:05 +02:00
parent db541f51ca
commit dff1054171

View File

@ -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))