aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/klippy.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-04-02 23:18:16 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-04-13 13:20:13 -0400
commit9f9e3e61d60c4d5e377bff1ce0128294a864cfc3 (patch)
treef5e29d7bd47139ae045ff89ede64be489fb943f1 /klippy/klippy.py
parent1592395036677f4c5959d947bac62a419134600b (diff)
downloadkutter-9f9e3e61d60c4d5e377bff1ce0128294a864cfc3.tar.gz
kutter-9f9e3e61d60c4d5e377bff1ce0128294a864cfc3.tar.xz
kutter-9f9e3e61d60c4d5e377bff1ce0128294a864cfc3.zip
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>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r--klippy/klippy.py2
1 files changed, 1 insertions, 1 deletions
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):