Kaynağa Gözat

remove - sign from 0.00 value string

master
Flo Smilari 3 yıl önce
ebeveyn
işleme
2843101a2d
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3
    0
      Display.cpp

+ 3
- 0
Display.cpp Dosyayı Görüntüle

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);

Loading…
İptal
Kaydet