diff options
Diffstat (limited to 'fw/fe310/phone/timer.c')
-rw-r--r-- | fw/fe310/phone/timer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fw/fe310/phone/timer.c b/fw/fe310/phone/timer.c index 03593ff..cd66053 100644 --- a/fw/fe310/phone/timer.c +++ b/fw/fe310/phone/timer.c @@ -31,7 +31,10 @@ int timer_app(EVEWindow *window, EVEViewStack *stack) { APP_SPACERW(1,1), }; EVEPage *page = eve_form_create(window, stack, spec, APP_SPEC_SIZE(spec), NULL, timer_close); - if (page == NULL) return EVE_ERR_NOMEM; + if (page == NULL) { + APP_LOG(APP_LOG_ERR, "OUT OF MEMORY\n"); + return EVE_ERR_NOMEM; + } eos_timer_set_handler(EOS_TIMER_ETYPE_USR, timer); eos_timer_set(EOS_TIMER_ETYPE_USR, 500); eos_net_acquire_for_evt(EOS_EVT_TIMER | EOS_TIMER_ETYPE_USR, 1); |