Skip to content

Commit 2b436b3

Browse files
committed
fix qtsignal exception in progress callback when flashing
1 parent b00b3dd commit 2b436b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.86'
1+
__version__ = '1.0.87'

gui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def gui_flash_eeprom (self, ecu: ECU, input_filename: str, flash_calibration: bo
469469
log_callback.emit('[*] Uploading data to the ECU')
470470
write_memory(ecu, payload, flash_start, flash_size, progress_callback=Progress(progress_callback, flash_size))
471471

472-
progress_callback(99, 100)
472+
progress_callback.emit((99, 100))
473473

474474
ecu.bus.transport.hardware.set_timeout(300)
475475
log_callback.emit('[*] start routine 0x02 (verify blocks and mark as ready to execute)')
@@ -483,7 +483,7 @@ def gui_flash_eeprom (self, ecu: ECU, input_filename: str, flash_calibration: bo
483483
log_callback.emit('[!] Your ECU is now soft-bricked. There\'s no need to panic, all you need to do is flash a valid file.')
484484
return
485485

486-
progress_callback(100, 100)
486+
progress_callback.emit((100, 100))
487487
log_callback.emit('[*] ecu reset')
488488
log_callback.emit('[*] Done!')
489489
self.send_notification('Flashing finished', 'Turn off your ignition for 10 seconds')

0 commit comments

Comments
 (0)