ericalbers / ICM20948_DMP_Arduino

Invensense 20948 chip working with DMP code for Arduino environment
41 stars 10 forks source link

sprintf with floating points #3

Open SL06 opened 4 years ago

SL06 commented 4 years ago

sprintf lines with floating point (ex : sprintf(eamessage, "Accel: [%f,%f,%f]") don't always print , I often have blank instead of numbers. Sometime they work depending what option I select in the program. I am using a nrf52DK board.

I have switch to: Serial.print(String(event.data.quaternion.quat[0],4)); to get formatted numbers values printed