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
|
.dw sramTimerCny70SendAdc, sendAdc, TIMER_FLAGS_IF_ADDR, 30 ; every 30s
|
||||||
#endif
|
#endif
|
||||||
#ifdef MODULES_REED
|
#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
|
#endif
|
||||||
.dw 0 ; end of list
|
.dw 0 ; end of list
|
||||||
|
|
||||||
|
|||||||
@@ -146,8 +146,8 @@ REED_Fini:
|
|||||||
|
|
||||||
|
|
||||||
REED_Run:
|
REED_Run:
|
||||||
clc ; debug
|
; clc ; debug
|
||||||
ret ; debug
|
; ret ; debug
|
||||||
push r15
|
push r15
|
||||||
in r15, SREG
|
in r15, SREG
|
||||||
cli
|
cli
|
||||||
|
|||||||
Reference in New Issue
Block a user