Replies: 1 comment 1 reply
-
|
At first glance, the code you shared looks reasonable. Today is a busy, but I will take a look when I can. One question for you. There must always be a JavaScript stack frame when invoking a callback. If your C callback is triggered outside of an existing XS callback, you need to surround your XS in C calls with moddable/modules/io/digital/esp32/digitalbank.c Lines 382 to 385 in df88825 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble passing a data buffer from C to JS through a callback.
Here is the JS code:
and C code
and the output
And I tried passing string, which works fine:
output
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions