diff --git a/src/driver/drv_bl_shared.c b/src/driver/drv_bl_shared.c index e90cca20e..039b526bb 100644 --- a/src/driver/drv_bl_shared.c +++ b/src/driver/drv_bl_shared.c @@ -331,7 +331,7 @@ commandResult_t BL09XX_ResetEnergyCounterEx(int asensdatasetix, float* pvalue) } ConsumptionResetTime = (time_t)NTP_GetCurrentTime(); #if PLATFORM_BK7231N || PLATFORM_BK7231T - if (ota_progress()==-1) + if (OTA_GetProgress()==-1) #endif { BL09XX_SaveEmeteringStatistics(); @@ -722,7 +722,7 @@ void BL_ProcessUpdate(float voltage, float current, float power, // sensdataset->sensors[OBK_CONSUMPTION_YESTERDAY].rounding_decimals, 0); //stat_updatesSent++; #if PLATFORM_BK7231N || PLATFORM_BK7231T - if (ota_progress()==-1) + if (OTA_GetProgress()==-1) #endif { BL09XX_SaveEmeteringStatistics(); @@ -918,7 +918,7 @@ void BL_ProcessUpdate(float voltage, float current, float power, ((xTaskGetTickCount() - lastConsumptionSaveStamp) >= (6 * 3600 * 1000 / portTICK_PERIOD_MS))) { #if PLATFORM_BK7231N || PLATFORM_BK7231T - if (ota_progress() == -1) + if (OTA_GetProgress() == -1) #endif { lastSavedEnergyCounterValue[asensdatasetix] = (float)sensdataset->sensors[OBK_CONSUMPTION_TOTAL].lastReading; diff --git a/src/driver/drv_doorSensorWithDeepSleep.c b/src/driver/drv_doorSensorWithDeepSleep.c index f7ae28f51..a1aace6b6 100644 --- a/src/driver/drv_doorSensorWithDeepSleep.c +++ b/src/driver/drv_doorSensorWithDeepSleep.c @@ -111,7 +111,7 @@ void DoorDeepSleep_QueueNewEvents() { void DoorDeepSleep_OnEverySecond() { #if PLATFORM_BK7231N || PLATFORM_BK7231T - if (ota_progress() >= 0) { + if (OTA_GetProgress() >= 0) { #else if (false) { #endif diff --git a/src/driver/drv_ntp.c b/src/driver/drv_ntp.c index 735bb2880..168454c74 100644 --- a/src/driver/drv_ntp.c +++ b/src/driver/drv_ntp.c @@ -722,7 +722,7 @@ void NTP_OnEverySecond() #elif PLATFORM_W600 || PLATFORM_W800 #elif PLATFORM_XR809 #elif PLATFORM_BK7231N || PLATFORM_BK7231T - if (ota_progress() != -1) + if (OTA_GetProgress() != -1) { return; } diff --git a/src/httpserver/http_fns.c b/src/httpserver/http_fns.c index a59a19d8c..66a16bae9 100644 --- a/src/httpserver/http_fns.c +++ b/src/httpserver/http_fns.c @@ -1046,9 +1046,9 @@ typedef enum { #endif #if PLATFORM_BK7231N || PLATFORM_BK7231T - if (ota_progress() >= 0) + if (OTA_GetProgress() >= 0) { - hprintf255(request, "