diff options
Diffstat (limited to 'pico-watch.cpp')
-rw-r--r-- | pico-watch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pico-watch.cpp b/pico-watch.cpp index a9e156a..282ae4e 100644 --- a/pico-watch.cpp +++ b/pico-watch.cpp @@ -20,18 +20,18 @@ global_status g_s; user_settings g_user; -Api app_api; +AppAPI app_api; 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) { g_s.is_sleeping = true; - app_api.performance_set(Api::perf_modes::ENTER_SHALLOW_SLEEP); + app_api.performance_set(AppAPI::perf_modes::ENTER_SHALLOW_SLEEP); app_api.display_power(false); } else if (g_s.is_sleeping && time_since_last_press < g_user.sleep_delay) { g_s.is_sleeping = false; - app_api.performance_set(Api::perf_modes::EXIT_SHALLOW_SLEEP); + app_api.performance_set(AppAPI::perf_modes::EXIT_SHALLOW_SLEEP); app_api.display_power(true); } |