mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-26 15:07:17 +02:00
Decrease period length moving average to 80%
This commit is contained in:
@ -1216,6 +1216,6 @@ void setMeasurementMaxPeriod() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int calculateMaxPeriod(int updateInterval) {
|
int calculateMaxPeriod(int updateInterval) {
|
||||||
// 0.5 is 50% reduced interval for max period
|
// 0.8 is 80% reduced interval for max period
|
||||||
return (SERVER_SYNC_INTERVAL - (SERVER_SYNC_INTERVAL * 0.5)) / updateInterval;
|
return (SERVER_SYNC_INTERVAL - (SERVER_SYNC_INTERVAL * 0.8)) / updateInterval;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user