| void Display::drawDistanceValue(float distance) { | void Display::drawDistanceValue(float distance) { | ||||
| String txt = String(distance, 2); | String txt = String(distance, 2); | ||||
| if (txt.equals("-0.00")) { | |||||
| txt.replace("-", ""); | |||||
| } | |||||
| char *s = &txt[0]; | char *s = &txt[0]; | ||||
| int16_t w = 0, h = 0; | int16_t w = 0, h = 0; | ||||
| u8g2_gfx.setFont(u8g2_font_logisoso22_tf); | u8g2_gfx.setFont(u8g2_font_logisoso22_tf); |