Thread-safe logging with Arduino
Posted: Wed Jan 08, 2025 2:08 am
I am trying to log some information regarding the state of my program, but I sometimes get unexpected results:
Is this indicating some sort of memory corruption, or is this because of some context switching/thread safety issues of using log_i()?
Code: Select all
[ 24477][I][main.cpp:101] listen_table(): got 1, space remaining: 63
[ 24488][I][main.cpp:60] listen_goal(): received T
[ 24493][I][m[a i2n4.4c9p3p]:[7I8]][ mlaiisnt.ecnp_pg:o1a0l3(]) :l iFsitneins_hteadb lsee(n)d:i ntga.b