fix monitor serial reconection with the last command changes
@@ -79,7 +79,7 @@ class Upload(Initialize):
self.after_complete()
- if(get_setting('run_monitor', None) and out[0] == 0):
+ if(get_setting('run_monitor', None) and self.exit_code() == 0):
from ..libraries.serial import toggle_serial_monitor
toggle_serial_monitor()
save_setting('run_monitor', None)
