浏览代码

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

正在加载...
取消
保存