Closed scaprile closed 2 years ago
Observing the source code for the mgos_event_trigger() function I see it just calls the handler, no event queuing, so it is clear to me why this is not proper usage of the function and that mOS does not support an event handler re-triggering itself other than for recursive-function-like purposes (and given enough stack space available)
indeed, event handlers are executed in-line so you can't re-trigger event from its handler.
A callback for an event triggering the very same event in order to simulate a main loop causes canary watchpoint resets or core panics (Double exception); minimum app attached: crash.zip