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 efa7702..abfcdf6 100644 --- a/pico-watch.cpp +++ b/pico-watch.cpp @@ -42,16 +42,16 @@ int main() { struct repeating_timer timer; add_repeating_timer_ms(250, repeating_callback, NULL, &timer); // TODO: Execute on core1 - g_s.current_app = app_mgr::app_init(0); + g_s.foreground_app = app_mgr::app_init(0); while (1) { if (g_s.app_switch_requested) { - app_mgr::app_switch(g_s.current_app, g_s.app_switch_to_app); + app_mgr::app_switch(g_s.foreground_app, g_s.app_switch_to_app); g_s.app_switch_requested = false; } if (g_s.app_ready && !g_s.is_sleeping) { - app_mgr::app_render(g_s.current_app); + app_mgr::app_render(g_s.foreground_app); app_api.display_write_backbuffer(); } |