m5stack / M5Core2

M5Core2 Arduino Library
MIT License
263 stars 115 forks source link

M5.Lcd.printf, not showing sign values for floats properly #69

Closed versamodule closed 2 years ago

versamodule commented 2 years ago

M5.Lcd.printf does not work properly for formatting with the " + " for floats

// Does not show "+" on the LCD, it just shows the number alone M5.Lcd.printf("%+.2f\r\n", 34.56);

// Does show "-" on the LCD
M5.Lcd.printf("%+.2f\r\n", -34.56);

// Both of these work fine in the terminal. Serial.printf("%+.2f\r\n", 34.56); Serial.printf("%+.2f\r\n", -34.56);