ISSUE #19: Corrected setDisplayToString dot bug
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
- ISSUE #19: Corrected setDisplayToString dot bug.
|
||||||
|
|
||||||
Version 2.0.1
|
Version 2.0.1
|
||||||
|
|
||||||
- ISSUE #15: Backwards compatibility with previous Arduino IDE (pure virtual functions were not supported);
|
- ISSUE #15: Backwards compatibility with previous Arduino IDE (pure virtual functions were not supported);
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ void TM16XX::setDisplayToString(const char* string, const word dots, const byte
|
|||||||
{
|
{
|
||||||
for (int i = 0; i < displays - pos; i++) {
|
for (int i = 0; i < displays - pos; i++) {
|
||||||
if (string[i] != '\0') {
|
if (string[i] != '\0') {
|
||||||
sendChar(i + pos, font[string[i] - 32], dots & (1 << (displays - i - 1)) != 0);
|
sendChar(i + pos, font[string[i] - 32], (dots & (1 << (displays - i - 1))) != 0);
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -106,7 +106,7 @@ void TM16XX::setDisplayToString(const String string, const word dots, const byte
|
|||||||
|
|
||||||
for (int i = 0; i < displays - pos; i++) {
|
for (int i = 0; i < displays - pos; i++) {
|
||||||
if (i < stringLength) {
|
if (i < stringLength) {
|
||||||
sendChar(i + pos, font[string.charAt(i) - 32], dots & (1 << (displays - i - 1)) != 0);
|
sendChar(i + pos, font[string.charAt(i) - 32], (dots & (1 << (displays - i - 1))) != 0);
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user