Skip to content

Commit

Permalink
ATmega328PB: deactivate bod during power down (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDoe2991 authored Jul 1, 2021
1 parent 2e00bf6 commit 7a5a98f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal/architecture/AVR/MyHwAVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a5a98f

Please sign in to comment.