aboutsummaryrefslogtreecommitdiffstats
path: root/api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api.cpp')
-rw-r--r--api.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/api.cpp b/api.cpp
index 1200f16..2d63506 100644
--- a/api.cpp
+++ b/api.cpp
@@ -134,6 +134,16 @@ bool Api::datetime_get(datetime_t *t) {
return rtc_get_datetime(t);
}
+int Api::performance_render_interval_get() {
+ return m_app_render_interval;
+}
+
+void Api::performance_render_interval_set(int interval) {
+ if (interval < 10)
+ interval = 10;
+ m_app_render_interval = interval;
+}
+
uint Api::button_last_get() {
return m_button_last_pressed;
}