소스 검색

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

Thanks to @leptun
Yuri D'Elia 5 년 전
부모
커밋
2b46fdac2d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();