You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 structure
POSLIB_FLAG_EVENT_info_t
, has theevent_id
field defined asuint8_t
, thus the value256
will be trucated to0
, remapping ontoPOSLIB_FLAG_EVENT_NONE
.The text was updated successfully, but these errors were encountered: