From 45e578e44467a39c1f6b62d14fe0e4dccd691538 Mon Sep 17 00:00:00 2001 From: anschrammh Date: Thu, 1 Aug 2024 01:37:42 +0200 Subject: [PATCH] Calling the RTC 32k oscillator calibration function every 15 minutes, may be changed to a longer interval in the future --- src/W800_SDK_v1.00.10/app/gfx/gfx_task.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/W800_SDK_v1.00.10/app/gfx/gfx_task.c b/src/W800_SDK_v1.00.10/app/gfx/gfx_task.c index 87ec78f..b5aba3a 100644 --- a/src/W800_SDK_v1.00.10/app/gfx/gfx_task.c +++ b/src/W800_SDK_v1.00.10/app/gfx/gfx_task.c @@ -897,8 +897,9 @@ void gfx_task(void *param) } /* Perform the periodic background tasks */ - APP_LOG_INFO("Periodic timer wakeup !"); - + APP_LOG_INFO("Periodic timer wakeup :"NEW_LINE + "\t - RTC calibration : %d", tls_pmu_32k_calibrate()); + } while (watch_peripherals_wakeup_source_is_timer()); /* On wake up, we force the watch face to sync up with the rtc /!\ RTC update delay WTF ? */ @@ -910,7 +911,7 @@ void gfx_task(void *param) _perform_deferred_display_wake_up_set_timestamp(); } - // Necessary to not enter the if condition over and over again + // Necessary TO NOT enter the if condition over and over again lv_disp_trig_activity(NULL); }