diff --git a/src/TM1638plus.cpp b/src/TM1638plus.cpp index fd97cfd..124b902 100755 --- a/src/TM1638plus.cpp +++ b/src/TM1638plus.cpp @@ -81,8 +81,8 @@ void TM1638plus::displayText(const char *text) { char c, pos; pos = 0; - while ((c = (*text++)) ) { - if (*text == '.') { + while ((c = (*text++)) && pos < DISPLAY_SIZE ) { + if (*text == '.' && c != '.') { displayASCIIwDot(pos++, c); text++;