Allow timer to exceed 24h (T2335)

Backport of upstream 097ffa4842
master
Marcio Teixeira 6 years ago
parent 08d06b1c47
commit 2e98392930

@ -154,7 +154,7 @@ struct duration_t {
return d >= 10 ? 8 : 7; return d >= 10 ? 8 : 7;
} }
else if (h < 100) { else if (h < 100) {
sprintf_P(buffer, PSTR("%02u:%02u"), h % 24, m); sprintf_P(buffer, PSTR("%02u:%02u"), h, m);
return 5; return 5;
} }
else { else {

Loading…
Cancel
Save