Thread-safe logging with Arduino

hnsbtn
Posts: 1
Joined: Fri Jan 03, 2025 1:16 pm

Thread-safe logging with Arduino

Postby hnsbtn » 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:

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
Is this indicating some sort of memory corruption, or is this because of some context switching/thread safety issues of using log_i()?

Who is online

Users browsing this forum: No registered users and 38 guests