this modulo math seems stinky even if it worked. probably because 24h time but it would behave differently in 12h time?
This commit is contained in:
parent
49ba4c29ae
commit
e3967e8a90
|
@ -151,7 +151,7 @@ void WatchFaceFuzzy::printTimeWords(int h, int m) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (m > 32) {
|
else if (m > 32) {
|
||||||
sprintf(timeStr, "#ffffff %s#\n#808080 to# #FFFFFF %s#", mod, nums[(h % 12) + 1]);
|
sprintf(timeStr, "#ffffff %s#\n#808080 to# #FFFFFF %s#", mod, nums[(h+1) % 12]);
|
||||||
}
|
}
|
||||||
|
|
||||||
lv_label_set_text(label_time, timeStr);
|
lv_label_set_text(label_time, timeStr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user