소스 검색

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…
취소
저장