diff options
author | ConfuSomu | 2021-08-19 10:50:58 +0200 |
---|---|---|
committer | ConfuSomu | 2021-08-19 10:53:12 +0200 |
commit | 74b05b65b2dcd2a7428fa06c6c15e4c8f68f0534 (patch) | |
tree | 03e9d89c0f873a9eff8289efeb90c070b059d0e1 | |
parent | 9c1cec0f1019af9185050c3730a6adbfb1280b72 (diff) | |
download | pico-watch-74b05b65b2dcd2a7428fa06c6c15e4c8f68f0534.tar pico-watch-74b05b65b2dcd2a7428fa06c6c15e4c8f68f0534.tar.gz pico-watch-74b05b65b2dcd2a7428fa06c6c15e4c8f68f0534.zip |
Rename repeating timer to more descriptive name
status_check and cb_status_check.
-rw-r--r-- | pico-watch.cpp | 7 |
1 files 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); |