diff options
author | ConfuSomu | 2021-03-28 13:35:52 -0400 |
---|---|---|
committer | ConfuSomu | 2021-03-28 13:35:52 -0400 |
commit | 1f47cd65a4c155d69575e8c3114f408f0f1ce8e8 (patch) | |
tree | ddcccf12b81ea2dc877c2426110102383ea2c68e /pico-watch.cpp | |
parent | eb01ae68e4ffc5850b1b1182844ae4e60611fe0e (diff) | |
parent | 079dbd3c3679edee99d3d54ed1913403d77b153b (diff) | |
download | pico-watch-1f47cd65a4c155d69575e8c3114f408f0f1ce8e8.tar pico-watch-1f47cd65a4c155d69575e8c3114f408f0f1ce8e8.tar.gz pico-watch-1f47cd65a4c155d69575e8c3114f408f0f1ce8e8.zip |
Merge branch 'api-class'
Add a few new API features.
Diffstat (limited to 'pico-watch.cpp')
-rw-r--r-- | pico-watch.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pico-watch.cpp b/pico-watch.cpp index 9e22687..1dee093 100644 --- a/pico-watch.cpp +++ b/pico-watch.cpp @@ -95,8 +95,10 @@ int main() { app_init(current_app); while (1) { - if (app_ready && !is_sleeping) + if (app_ready && !is_sleeping) { app_render(current_app); // FIXME: This may cause race conditions when switching app + app_api.display_write_backbuffer(); + } sleep_ms(app_api.performance_render_interval_get()); } return 0; |