Merge pull request #5933 from teemuatlut/lcd_days_hours

Fix formatting of SD print time hours above one day
This commit is contained in:
Scott Lahteine 2017-03-01 15:44:10 -06:00 committed by GitHub
commit cbeff12f8a

View File

@ -150,7 +150,7 @@ struct duration_t {
m = uint16_t(this->minute() % 60UL);
if (with_days) {
uint16_t d = this->day();
sprintf_P(buffer, PSTR("%ud %02u:%02u"), d, h, m);
sprintf_P(buffer, PSTR("%ud %02u:%02u"), d, h % 24, m);
return d >= 10 ? 8 : 7;
}
else if (h < 100) {