From d85d89087813dc1a345d8b79af2d99d1f9918a6d Mon Sep 17 00:00:00 2001 From: Phat Nguyen Date: Fri, 24 May 2024 08:26:24 +0700 Subject: [PATCH] Change OTA update period from 2h to 1h --- examples/OneOpenAir/OneOpenAir.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/OneOpenAir/OneOpenAir.ino b/examples/OneOpenAir/OneOpenAir.ino index 82742a1..594878e 100644 --- a/examples/OneOpenAir/OneOpenAir.ino +++ b/examples/OneOpenAir/OneOpenAir.ino @@ -864,8 +864,8 @@ static void configUpdateHandle() { doOta = true; Serial.println("First OTA"); } else { - /** Only check for update each 2h*/ - const float otaBootCount = 120.0f / (SERVER_SYNC_INTERVAL / 60000.0f); + /** Only check for update each 1h*/ + const float otaBootCount = 60.0f / (SERVER_SYNC_INTERVAL / 60000.0f); if ((measurements.bootCount - measurements.otaBootCount) >= (int)otaBootCount) { doOta = true; } else {