From 9f9e3e61d60c4d5e377bff1ce0128294a864cfc3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 2 Apr 2017 23:18:16 -0400 Subject: 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 --- klippy/klippy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/klippy.py') diff --git a/klippy/klippy.py b/klippy/klippy.py index e63bb096..c73c18c2 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -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): -- cgit v1.2.3-70-g09d2