Tostring fix #90

Closed
opened 2026-04-05 17:51:49 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @gorbit99 on 5/2/2025

I noticed that when the tracker serial console was reporting garbage data for the imu interface, because an std::string was passed to a %s format parameter expecing a cstring. I fixed this up and also added the format attribute to the logging methods, which tells gcc (and clang) that they are using the printf style format strings as params. Also fixed up any other warnings generated by this.

*Originally created by @gorbit99 on 5/2/2025* I noticed that when the tracker serial console was reporting garbage data for the imu interface, because an std::string was passed to a %s format parameter expecing a cstring. I fixed this up and also added the format attribute to the logging methods, which tells gcc (and clang) that they are using the printf style format strings as params. Also fixed up any other warnings generated by this.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/SlimeVR-Tracker-ESP#90