mcu: Make sure a FIRMWARE_RESTART actually resets the mcu
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
a3a45b5037
commit
4c25eae9b4
|
@ -571,6 +571,8 @@ class MCU:
|
||||||
raise error("Firmware error during config: %s" % (
|
raise error("Firmware error during config: %s" % (
|
||||||
self._shutdown_msg,))
|
self._shutdown_msg,))
|
||||||
raise error("Unable to configure printer")
|
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']:
|
if self._config_crc != config_params['crc']:
|
||||||
self._check_restart("CRC mismatch")
|
self._check_restart("CRC mismatch")
|
||||||
raise error("Printer CRC does not match config")
|
raise error("Printer CRC does not match config")
|
||||||
|
|
Loading…
Reference in New Issue