add widget_ev_to_str(); Pass 'ed' through to EV_WIDGET_TOUCH_{UP,DOWN} calls
This commit is contained in:
@ -4,10 +4,14 @@
|
||||
extern int _mgos_timers;
|
||||
|
||||
static void test_widget_default_ev(int ev, struct widget_t *w, void *ev_data) {
|
||||
char evname[15];
|
||||
|
||||
if (!w)
|
||||
return;
|
||||
|
||||
LOG(LL_INFO, ("Event %d received for widget '%s'", ev, w->name));
|
||||
widget_ev_to_str(ev, evname, sizeof(evname)-1);
|
||||
|
||||
LOG(LL_INFO, ("Event %s received for widget '%s'", evname, w->name));
|
||||
|
||||
switch(ev) {
|
||||
case EV_WIDGET_CREATE:
|
||||
|
Reference in New Issue
Block a user