In file poslib.h:
the event: POSLIB_FLAG_EVENT_LED_OFF is defined as POSLIB_FLAG_EVENT_LED_OFF = 256,
but in the callback function: poslib_events_listen_info_f, called at line 228 in poslib_event.c,
the callback argument structure POSLIB_FLAG_EVENT_info_t, has the event_id field defined as uint8_t, thus the value 256 will be trucated to 0, remapping onto POSLIB_FLAG_EVENT_NONE.
In file
poslib.h
: the event:POSLIB_FLAG_EVENT_LED_OFF
is defined asPOSLIB_FLAG_EVENT_LED_OFF = 256
, but in the callback function:poslib_events_listen_info_f
, called at line228
inposlib_event.c
, the callback argument structurePOSLIB_FLAG_EVENT_info_t
, has theevent_id
field defined asuint8_t
, thus the value256
will be trucated to0
, remapping ontoPOSLIB_FLAG_EVENT_NONE
.