removed idle time calculation (doesn't work so far).
This commit is contained in:
@@ -71,8 +71,6 @@ main_loop:
|
||||
; cbi PORTA, PORTA2 ; debug (on)
|
||||
; sbi PORTA, PORTA2 ; debug (off)
|
||||
|
||||
rcall Timer_BeforeSleep
|
||||
|
||||
; only modify SE, SM1 and SM0
|
||||
in r16, MCUCR
|
||||
ldi r17, (1<<SE) | (1<<SM1) | (1<<SM0)
|
||||
@@ -81,7 +79,6 @@ main_loop:
|
||||
ori r16, (1<<SE) ; sleep mode "idle", enable
|
||||
out MCUCR, r16
|
||||
sleep ; sleep, wait for interrupt
|
||||
rcall Timer_AfterSleep
|
||||
rjmp main_loop
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user