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
We are working around it in the extension by creating a custom onEvent TS function that calls a custom registerWithDal C++ function that passes the extra argument to uBit.messageBus.listen(). So it's not a blocker, but I would consider this a bug in pxt-microbit, as it's only missing passing the flags argument forward.
The
control.onEvent()
C++ function checks if any flag is provided, and if not it set theEventFlags::QueueIfBusy
by default:pxt-microbit/libs/core/control.cpp
Lines 304 to 307 in 5b0d30f
However, the
registerWithDal()
function then ignores theflags
argument:pxt-microbit/libs/core/codal.cpp
Lines 99 to 104 in 5b0d30f
So, it ultimately depends on the CODAL default beings set to
MESSAGE_BUS_LISTENER_QUEUE_IF_BUSY
via theEVENT_LISTENER_DEFAULT_FLAGS
config:The text was updated successfully, but these errors were encountered: