diff --git a/spybug/spybug.ino b/spybug/spybug.ino index 30d6ee7..df45b1a 100644 --- a/spybug/spybug.ino +++ b/spybug/spybug.ino @@ -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; }