From acaa3ef09405d0f95f9b75cb4552c9ef5280a44f Mon Sep 17 00:00:00 2001 From: Metaln00b Date: Wed, 1 Dec 2021 23:44:21 +0100 Subject: [PATCH] 7_SEG: Fair fixing of wednesday display issue Spotted at https://github.com/LeeHolmes/watchysim --- examples/WatchFaces/7_SEG/Watchy_7_SEG.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/WatchFaces/7_SEG/Watchy_7_SEG.cpp b/examples/WatchFaces/7_SEG/Watchy_7_SEG.cpp index 7389f14..32f41c4 100644 --- a/examples/WatchFaces/7_SEG/Watchy_7_SEG.cpp +++ b/examples/WatchFaces/7_SEG/Watchy_7_SEG.cpp @@ -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);