avr: report motion and door values every 2m.
This commit is contained in:
@@ -117,6 +117,16 @@ AppReportSensors_OnEverySecond_store:
|
||||
breq AppReportSensors_OnEverySecond_sendBrightness
|
||||
#endif
|
||||
|
||||
#ifdef APPS_DOOR
|
||||
cpi r16, 100
|
||||
breq AppReportSensors_OnEverySecond_sendDoorValue
|
||||
#endif
|
||||
|
||||
#ifdef APPS_MOTION
|
||||
cpi r16, 108
|
||||
breq AppReportSensors_OnEverySecond_sendMotionValue
|
||||
#endif
|
||||
|
||||
ret
|
||||
|
||||
#ifdef MODULES_SI7021
|
||||
@@ -162,6 +172,16 @@ AppReportSensors_OnEverySecond_sendBrightness:
|
||||
rjmp Brightness_Send
|
||||
#endif
|
||||
|
||||
#ifdef APPS_DOOR
|
||||
AppReportSensors_OnEverySecond_sendDoorValue:
|
||||
rjmp appDoorSendValue
|
||||
#endif
|
||||
|
||||
#ifdef APPS_MOTION
|
||||
AppReportSensors_OnEverySecond_sendMotionValue:
|
||||
rjmp appMotionSendValue
|
||||
#endif
|
||||
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user