Skip to content

Commit d6f1012

Browse files
authored
Merge pull request #344 from toofishes/info-display
LCD info display corrections and date format tweak
2 parents a9f37a1 + b8d4154 commit d6f1012

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lcd.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ void LcdTask::displayInfoLine(LcdInfoLine line, unsigned long &nextUpdate)
546546
gettimeofday(&local_time, NULL);
547547
struct tm timeinfo;
548548
localtime_r(&local_time.tv_sec, &timeinfo);
549-
strftime(temp, sizeof(temp), "%d/%m/%Y", &timeinfo);
549+
strftime(temp, sizeof(temp), "%Y-%m-%d", &timeinfo);
550550
displayNameValue(1, "Date", temp);
551551
_updateInfoLine = false;
552552
} break;
@@ -624,10 +624,10 @@ void LcdTask::displayScaledNumberValue(int line, const char *name, double value,
624624
static const char *mod[] = {
625625
"",
626626
"k",
627-
"m",
628-
"g",
629-
"t",
630-
"p"
627+
"M",
628+
"G",
629+
"T",
630+
"P"
631631
};
632632

633633
int index = 0;

0 commit comments

Comments
 (0)