Only trigger a quick reset if there's a pending saved state
Thanks to @leptun
This commit is contained in:
parent
b46dc59fad
commit
2b46fdac2d
@ -10772,7 +10772,7 @@ void setup_uvlo_interrupt() {
|
|||||||
EIMSK |= (1 << 4);
|
EIMSK |= (1 << 4);
|
||||||
|
|
||||||
// check if power was lost before we armed the interrupt
|
// 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");
|
SERIAL_ECHOLNPGM("INT4");
|
||||||
uvlo_drain_reset();
|
uvlo_drain_reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user