summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.c b/main.c
index bf50ec3..6bfabe1 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,5 @@
#include <avr/io.h>
#include <avr/interrupt.h>
-#include <avr/power.h>
#include <avr/wdt.h>
#include <util/delay.h>
#include <stdlib.h>
@@ -14,7 +13,7 @@ int main (void)
uint16_t want_shutdown = 0;
// disable ADC to save power
- power_adc_disable();
+ PRR |= _BV(PRADC);
// dito
wdt_disable();