summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/rocklib_events.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklib_events.c')
-rw-r--r--apps/plugins/lua/rocklib_events.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib_events.c b/apps/plugins/lua/rocklib_events.c
index dc15c363a4..1c13a6758f 100644
--- a/apps/plugins/lua/rocklib_events.c
+++ b/apps/plugins/lua/rocklib_events.c
@@ -424,7 +424,10 @@ static void init_event_thread(bool init, struct event_data *ev_data)
IF_COP(, COP));
/* Timer is used to poll waiting events */
- rb->timer_register(1, NULL, EV_TIMER_FREQ, rev_timer_isr IF_COP(, CPU));
+ if (!rb->timer_register(1, NULL, EV_TIMER_FREQ, rev_timer_isr IF_COP(, CPU)))
+ {
+ rb->splash(100, "No timer available!");
+ }
}
static void playback_event_callback(unsigned short id, void *data)