Move "WDR dump" inside EMERGENGENCY_DUMP

This commit is contained in:
Yuri D'Elia 2021-06-10 17:02:41 +02:00
parent 63f870c089
commit c375610668
6 changed files with 20 additions and 20 deletions
Firmware

View file

@ -163,9 +163,9 @@ void xyzcal_meassure_leave(void)
ENABLE_STEPPER_DRIVER_INTERRUPT();
#ifdef WATCHDOG
wdt_enable(WDTO_4S);
#ifdef XFLASH_DUMP
#ifdef EMERGENCY_DUMP
WDTCSR |= (1 << WDIE);
#endif //XFLASH_DUMP
#endif //EMERGENCY_DUMP
#endif //WATCHDOG
sm4_stop_cb = 0;
sm4_update_pos_cb = 0;