ATmega328PB: deactivate bod during power down (#1493)

This commit is contained in:
Johnny
2021-07-01 22:31:27 +02:00
committed by GitHub
parent 2e00bf6a10
commit 7a5a98f548

View File

@@ -101,7 +101,7 @@ void hwPowerDown(const uint8_t wdto)
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
cli();
sleep_enable();
#if defined(__AVR_ATmega328P__)
#if defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328PB__)
sleep_bod_disable();
#endif
// Enable interrupts & sleep until WDT or ext. interrupt