mcu: Support reset command

Extend the FIRMWARE_RESTART command so that it can use the firmware
"reset" command instead of the "arduino" mechanism.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2017-04-02 23:18:16 -04:00
parent 1592395036
commit 9f9e3e61d6
4 changed files with 36 additions and 5 deletions

View File

@@ -246,8 +246,8 @@ class Printer:
try:
if self.mcu is not None:
self.stats(self.reactor.monotonic())
self.mcu.disconnect()
self.mcu.microcontroller_restart()
self.mcu.disconnect()
except:
logging.exception("Unhandled exception during firmware_restart")
def get_startup_state(self):