Explorar o código

Only trigger a quick reset if there's a pending saved state

Thanks to @leptun
Yuri D'Elia %!s(int64=5) %!d(string=hai) anos
pai
achega
2b46fdac2d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Firmware/Marlin_main.cpp

+ 1 - 1
Firmware/Marlin_main.cpp

@@ -10772,7 +10772,7 @@ void setup_uvlo_interrupt() {
 	EIMSK |= (1 << 4);
 
     // check if power was lost before we armed the interrupt
-    if(!(PINE & (1 << 4)))
+    if(!(PINE & (1 << 4)) && eeprom_read_byte((uint8_t*)EEPROM_UVLO))
     {
         SERIAL_ECHOLNPGM("INT4");
         uvlo_drain_reset();