From 74b05b65b2dcd2a7428fa06c6c15e4c8f68f0534 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Thu, 19 Aug 2021 10:50:58 +0200 Subject: Rename repeating timer to more descriptive name status_check and cb_status_check. --- pico-watch.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pico-watch.cpp b/pico-watch.cpp index 4bca42c..b1d0c13 100644 --- a/pico-watch.cpp +++ b/pico-watch.cpp @@ -15,7 +15,7 @@ global_status g_s; user_settings g_user; Api app_api; -bool repeating_callback(struct repeating_timer *t) { +bool cb_status_check(struct repeating_timer *t) { // Enter shallow sleep mode when needed auto time_since_last_press = time_since_button_press(); if (!g_s.is_sleeping && time_since_last_press > g_user.sleep_delay) { @@ -39,8 +39,9 @@ int main() { printf("~~~==~~~"); init_buttons(); app_api.init(); - struct repeating_timer timer; - add_repeating_timer_ms(250, repeating_callback, NULL, &timer); // TODO: Execute on core1 + + struct repeating_timer status_check_timer; + add_repeating_timer_ms(250, cb_status_check, NULL, &status_check_timer); // TODO: Execute on core1 g_s.foreground_app = app_mgr::app_init(0); -- cgit v1.2.3-54-g00ecf