avr: reduce number of messages send.
- sensor report interval 60->120s - stats report interval 11-31 mins
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
; ***************************************************************************
|
||||
; defines
|
||||
|
||||
.equ APP_REPORT_SENSORS_INTERVAL_SECS = 60
|
||||
.equ APP_REPORT_SENSORS_INTERVAL_SECS = 120
|
||||
|
||||
|
||||
|
||||
@@ -78,39 +78,39 @@ AppReportSensors_OnEverySecond_store:
|
||||
#ifdef MODULES_SI7021
|
||||
cpi r16, 1
|
||||
breq AppReportSensors_OnEverySecond_measureValue1
|
||||
cpi r16, 19
|
||||
cpi r16, 11
|
||||
breq AppReportSensors_OnEverySecond_measureValue2
|
||||
cpi r16, 39
|
||||
cpi r16, 16
|
||||
breq AppReportSensors_OnEverySecond_sendValue1
|
||||
cpi r16, 49
|
||||
cpi r16, 21
|
||||
breq AppReportSensors_OnEverySecond_sendValue2
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_SGP40
|
||||
cpi r16, 27
|
||||
cpi r16, 32
|
||||
breq AppReportSensors_OnEverySecond_measureValue4
|
||||
cpi r16, 55
|
||||
cpi r16, 42
|
||||
breq AppReportSensors_OnEverySecond_sendValue4
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_SGP30
|
||||
cpi r16, 29
|
||||
cpi r16, 53
|
||||
breq AppReportSensors_OnEverySecond_measureValue5
|
||||
cpi r16, 57
|
||||
cpi r16, 63
|
||||
breq AppReportSensors_OnEverySecond_sendValue5
|
||||
cpi r16, 59
|
||||
cpi r16, 73
|
||||
breq AppReportSensors_OnEverySecond_sendValue6
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_DS18B20
|
||||
cpi r16, 9
|
||||
cpi r16, 84
|
||||
breq AppReportSensors_OnEverySecond_sendValue3
|
||||
#endif
|
||||
|
||||
#ifdef MODULES_CCS811
|
||||
cpi r16, 31
|
||||
cpi r16, 94
|
||||
breq AppReportSensors_OnEverySecond_sendCCS811_TVOC
|
||||
cpi r16, 35
|
||||
cpi r16, 104
|
||||
breq AppReportSensors_OnEverySecond_sendCCS811_CO2
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user