-
Notifications
You must be signed in to change notification settings - Fork 64
Kleine 8x8 wortuhr #483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kleine 8x8 wortuhr #483
Conversation
Betrifft den issue #480, ich weiß aber nicht, wie ich den verlinke. |
Vielen Dank für deinen Pullrequest, ich schaue mir das mal an, wenn ich morgen mal wieder etwas Zeit habe :-) die letzten Wochen waren echt etwas viel. Mit freundlichen Grüßen |
Kein Ding, sind ja auch eine Menge Änderungen und Dezember ist immer etwas stressig... Ich bin auch noch nicht dazugekommen, die Spanische und die Deutsche Variante mit 5-Minuten einzupflegen. |
…layout-ESP-Wordclock into Kleine-8x8-Wortuhr
…layout-ESP-Wordclock into Kleine-8x8-Wortuhr
…layout-ESP-Wordclock into Kleine-8x8-Wortuhr
Hey @BastiMu Sag einfach an, sobald es fertig und getestet ist. Dann merge ich das :-) Mit freundlichen Grüßen |
…layout-ESP-Wordclock into Kleine-8x8-Wortuhr
PR ESPWortuhr#483 introduced changes which reference the fontWidth and fontHeight variables directly as arrays. However, those two variables are declared as PROGMEM and may therefore only be referenced as addresses which will be read from flash via pgm_read_byte. The array access seems to cause crashes in certain configurations (and maybe undefined behavior in others?). This commit changes all fontWidth and fontHeight array accesses to be in line with the previous usage of those variables: The data is read via pgm_read_byte. Fixes: ESPWortuhr#557 Related: ESPWortuhr#550 (comment) Signed-off-by: Christian Hoffmann <[email protected]>
bool showHours = true; | ||
bool showMinutes = true; | ||
// toogle hours and minutes if clock is not high enough | ||
if (usedUhrType->rowsWordMatrix() < (fontHeight[usedFontSize] * 2 + 1)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope. This is an error.
The toggling is only necessary for the 8x8
Die 8x8 Wortuhr ist Aufgrund der Größe auf viertel Stunden limitiert. Außerdem funktionieren durch die kleine Matrix nicht mehr alle Funktionen identisch. Daher waren einige Änderungen notwendig, die ich hier kurz aufliste:
Ich habe die Wortuhr 8x8 Viertelstunde genannt, da ich später festgestellt habe, das man im Deutschen durch FÜNFZEHN statt VIERTEL auch 5-Minuten-weise die Zeit anzeigen kann. Diese will ich noch erstellen, die viertelstunden Einstellungen benötige ich jedoch auch, da auch eine Spanische Version geplant ist. Außerdem plane ich eine große 13x13 Wortuhr mit allen Minuten (daher der has60MinuteLayout identifier).