From 2ffe0a62aa151609ea6db2993f2be25a3bb452bc Mon Sep 17 00:00:00 2001 From: samuelbles07 Date: Mon, 21 Oct 2024 00:15:59 +0700 Subject: [PATCH] Reduce update interval for max period to 50% --- examples/OneOpenAir/OneOpenAir.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/OneOpenAir/OneOpenAir.ino b/examples/OneOpenAir/OneOpenAir.ino index a6bfd04..5244aec 100644 --- a/examples/OneOpenAir/OneOpenAir.ino +++ b/examples/OneOpenAir/OneOpenAir.ino @@ -1176,5 +1176,6 @@ void setMeasurementMaxPeriod() { } int calculateMaxPeriod(int updateInterval) { - return (SERVER_SYNC_INTERVAL - (SERVER_SYNC_INTERVAL * 0.1)) / updateInterval; + // 0.5 is 50% reduced interval for max period + return (SERVER_SYNC_INTERVAL - (SERVER_SYNC_INTERVAL * 0.5)) / updateInterval; } \ No newline at end of file