-
Debug logging isn't thread safe so logging from different tasks results in mangled output on Serial. However, if there is anything I can do in my code to prevent this, I'm happy to know. I'm using the |
Beta Was this translation helpful? Give feedback.
Answered by
bertmelis
Apr 11, 2023
Replies: 2 comments
-
I've come up with this, don't know if it's the most elegant/straightforward/... #define my_log_i(...) vPortEnterCritical();log_i(__VA_ARGS__);vPortExitCritical()
// the same for other logging levels |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bertmelis
-
Update:
God knows why it worked last time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've come up with this, don't know if it's the most elegant/straightforward/...