Skip to content

Commit

Permalink
Merge pull request #7 from gabormay/master
Browse files Browse the repository at this point in the history
Fix displayText
  • Loading branch information
gavinlyonsrepo authored May 2, 2020
2 parents 82a6701 + 80cb12b commit bae0e86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TM1638plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit bae0e86

Please sign in to comment.