Skip to content
Discussion options

You must be logged in to vote

but, I'm not sure it correct.

It is very much not correct. The MicroPython runtime (bytecode interpreter) needs to know about the C stack. If you make the variable static, it is no longer on the stack.

Instead, I would use #pragma to disable this check for this specific function. This is a dangling pointer, but it is intentional in this case.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sunpub
Comment options

Answer selected by sunpub
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants