mirror of https://github.com/sqfmi/Watchy.git
7_SEG: Fair fixing of wednesday display issue
Spotted at https://github.com/LeeHolmes/watchysimpull/114/head
parent
6363caeac2
commit
acaa3ef094
|
@ -51,6 +51,10 @@ void Watchy7SEG::drawDate(){
|
||||||
uint16_t w, h;
|
uint16_t w, h;
|
||||||
|
|
||||||
String dayOfWeek = dayStr(currentTime.Wday);
|
String dayOfWeek = dayStr(currentTime.Wday);
|
||||||
|
if (currentTime.Wday == 4)
|
||||||
|
{
|
||||||
|
dayOfWeek = "Wednesdy";
|
||||||
|
}
|
||||||
display.getTextBounds(dayOfWeek, 5, 85, &x1, &y1, &w, &h);
|
display.getTextBounds(dayOfWeek, 5, 85, &x1, &y1, &w, &h);
|
||||||
display.setCursor(85 - w, 85);
|
display.setCursor(85 - w, 85);
|
||||||
display.println(dayOfWeek);
|
display.println(dayOfWeek);
|
||||||
|
|
Loading…
Reference in New Issue