7_SEG: Fair fixing of wednesday display issue

Spotted at https://github.com/LeeHolmes/watchysim
pull/114/head
Metaln00b 2021-12-01 23:44:21 +01:00
parent 6363caeac2
commit acaa3ef094
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,10 @@ void Watchy7SEG::drawDate(){
uint16_t w, h;
String dayOfWeek = dayStr(currentTime.Wday);
if (currentTime.Wday == 4)
{
dayOfWeek = "Wednesdy";
}
display.getTextBounds(dayOfWeek, 5, 85, &x1, &y1, &w, &h);
display.setCursor(85 - w, 85);
display.println(dayOfWeek);