瀏覽代碼

remove - sign from 0.00 value string

master
Flo Smilari 3 年之前
父節點
當前提交
2843101a2d
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      Display.cpp

+ 3
- 0
Display.cpp 查看文件

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

Loading…
取消
儲存