From fc2546bee4ce0fc88761a44f91647596b1bd9e8d Mon Sep 17 00:00:00 2001 From: David Panusch Date: Fri, 13 Sep 2024 23:50:54 +0200 Subject: [PATCH] Fix for appended 0 in scrolling text --- include/clockWork.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clockWork.hpp b/include/clockWork.hpp index be24501..56319c4 100644 --- a/include/clockWork.hpp +++ b/include/clockWork.hpp @@ -203,10 +203,10 @@ void ClockWork::scrollingText(const char *buf) { led.show(); i++; - if (i > pgm_read_byte(&(fontWidth[normalSizeASCII]))) { + if (i >= pgm_read_byte(&(fontWidth[normalSizeASCII]))) { i = 0; ii++; - if (ii > strlen(buf)) { + if (ii >= strlen(buf)) { ii = 0; } }