summaryrefslogtreecommitdiffstats
path: root/pico-watch.cpp
diff options
context:
space:
mode:
authorConfuSomu2021-03-28 13:35:52 -0400
committerConfuSomu2021-03-28 13:35:52 -0400
commit1f47cd65a4c155d69575e8c3114f408f0f1ce8e8 (patch)
treeddcccf12b81ea2dc877c2426110102383ea2c68e /pico-watch.cpp
parenteb01ae68e4ffc5850b1b1182844ae4e60611fe0e (diff)
parent079dbd3c3679edee99d3d54ed1913403d77b153b (diff)
downloadpico-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.cpp4
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;