aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-04-13 14:29:18 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-04-13 14:29:18 -0400
commit4c25eae9b406d28d1c7e300aab7f8b4a4168c69b (patch)
treeea7150cd2dee45e8467f0b377ee44439f9311b99 /klippy/mcu.py
parenta3a45b5037fea1a7f0879451a41cea7a4809d1f2 (diff)
downloadkutter-4c25eae9b406d28d1c7e300aab7f8b4a4168c69b.tar.gz
kutter-4c25eae9b406d28d1c7e300aab7f8b4a4168c69b.tar.xz
kutter-4c25eae9b406d28d1c7e300aab7f8b4a4168c69b.zip
mcu: Make sure a FIRMWARE_RESTART actually resets the mcu
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py2
1 files changed, 2 insertions, 0 deletions
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")