avr/reed: moved notification source to REED_Run.
This make the node send the new status almost immediately after change.
This commit is contained in:
@@ -367,7 +367,7 @@ timerList:
|
||||
.dw sramTimerCny70SendAdc, sendAdc, TIMER_FLAGS_IF_ADDR, 30 ; every 30s
|
||||
#endif
|
||||
#ifdef MODULES_REED
|
||||
.dw sramTimerReedCheck, REED_Timer, TIMER_FLAGS_IF_ADDR, 1 ; every 1s
|
||||
; .dw sramTimerReedCheck, REED_Timer, TIMER_FLAGS_IF_ADDR, 1 ; every 1s
|
||||
#endif
|
||||
.dw 0 ; end of list
|
||||
|
||||
|
||||
@@ -146,8 +146,8 @@ REED_Fini:
|
||||
|
||||
|
||||
REED_Run:
|
||||
clc ; debug
|
||||
ret ; debug
|
||||
; clc ; debug
|
||||
; ret ; debug
|
||||
push r15
|
||||
in r15, SREG
|
||||
cli
|
||||
|
||||
Reference in New Issue
Block a user