microchip-pic-avr-solutions / avr-iot-cellular-arduino-library

Arduino library for developing Cellular IoT Applications with the AVR-IoT Cellular Mini development board from Microchip
Other
21 stars 4 forks source link

Log formatting for float doesn't work #10

Closed SeanCairns closed 1 year ago

SeanCairns commented 1 year ago

The documentation seems to indicate that I can use c++ printf formatting with Log. For example:

float myFloat = 3.14f;
Log.infof("Test float: %f", myFloat);

Should output: [INFO] Test float: 3.14

Instead I get: [INFO] Test float: ?

M65649 commented 1 year ago

Hello,

Could you attempt with enabling the option for Full, 2.6K, prints floats in Tools -> print() in the Arduino IDE and test again?

SeanCairns commented 1 year ago

That works! And makes debugging A LOT easier. Thanks again!

M65649 commented 1 year ago

No problem. I'll append that to our documentation page for the log module.