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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user