summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base_app.hpp1
-rw-r--r--pico-watch.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/base_app.hpp b/base_app.hpp
index 06f608a..3615df3 100644
--- a/base_app.hpp
+++ b/base_app.hpp
@@ -7,6 +7,7 @@ class BaseApp {
struct AppAttributes {
uint id = 0;
bool destroy_on_exit = true;
+ uint render_interval = 500; // Interval in ms at which the render method is called.
};
enum AppReturnValues {
OK = 0,
diff --git a/pico-watch.cpp b/pico-watch.cpp
index abfcdf6..9bf45e0 100644
--- a/pico-watch.cpp
+++ b/pico-watch.cpp
@@ -56,7 +56,7 @@ int main() {
}
if (g_s.is_sleeping) __wfi();
- else sleep_ms(app_api.performance_render_interval_get());
- }
+ else sleep_ms(g_s.foreground_app->app_get_attributes().render_interval);
+ }
return 0;
}