consistency

This commit is contained in:
r4 2022-04-18 23:02:12 +02:00
parent b6004c42e0
commit 6599bf151d
1 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ ISR (WDT_vect) {
/* Based on https://github.com/rocketscream/Low-Power. */
static void low_power_sleep_minutes(unsigned long t) {
wdt_int_sleep_mode = true;
ADCSRA &= ~(1 << ADEN); /* Disable ADC. */
ADCSRA &= ~_BV(ADEN); /* Disable ADC. */
for (unsigned long i = 0; 8ul * i < 60ul * t; i++) {
// Power Down for 8s
wdt_enable(WDTO_8S); /* Start watchdog timer for 8s. */
@ -146,7 +146,7 @@ static void low_power_sleep_minutes(unsigned long t) {
sei();
} while (0);
}
ADCSRA |= (1 << ADEN); /* Re-enable ADC. */
ADCSRA |= _BV(ADEN); /* Re-enable ADC. */
wdt_int_sleep_mode = false;
}