summaryrefslogtreecommitdiff
path: root/app/src/display/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/display/main.c')
-rw-r--r--app/src/display/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/display/main.c b/app/src/display/main.c
index 95b607e..57fab2b 100644
--- a/app/src/display/main.c
+++ b/app/src/display/main.c
@@ -22,6 +22,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#define ZMK_DISPLAY_NAME CONFIG_LVGL_DISPLAY_DEV_NAME
static const struct device *display;
+static bool initialized = false;
static lv_obj_t *screen;
@@ -82,6 +83,8 @@ static void stop_display_updates() {
k_timer_stop(&display_timer);
}
+int zmk_display_is_initialized() { return initialized; }
+
int zmk_display_init() {
LOG_DBG("");
@@ -108,6 +111,8 @@ int zmk_display_init() {
start_display_updates();
+ initialized = true;
+
LOG_DBG("");
return 0;
}