Formatting strings for UART transmission #226
-
I am trying to write a program that sends position and battery data from TOC over UART. Some of the values are floats, so I am using sprintf with the specifier %f to format a string that includes these values. However, when I build I get this error:
Is there a way to make sprintf work? Or is there an alternative way to format strings how I need? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can also check out how the |
Beta Was this translation helpful? Give feedback.
spritnf()
is not supported in the firmware, but perhaps you can useeprintf()
instead?You can also check out how the
DEBUG_PRINT
macro is defined when logging to UART