From 4c25eae9b406d28d1c7e300aab7f8b4a4168c69b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 13 Apr 2017 14:29:18 -0400 Subject: [PATCH] mcu: Make sure a FIRMWARE_RESTART actually resets the mcu Signed-off-by: Kevin O'Connor --- klippy/mcu.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/klippy/mcu.py b/klippy/mcu.py index 0f97205d..00af7e08 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -571,6 +571,8 @@ class MCU: raise error("Firmware error during config: %s" % ( self._shutdown_msg,)) raise error("Unable to configure printer") + elif self._printer.get_startup_state() == 'firmware_restart': + raise error("Failed automated reset of micro-controller") if self._config_crc != config_params['crc']: self._check_restart("CRC mismatch") raise error("Printer CRC does not match config")