tm1637 - support 6 character displays (#1803)

This commit is contained in:
Anthony Uk authored and GitHub committed 2021-05-21 20:04:25 -03:00
1 parent 96e46db272
commit 514d11d46f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -253,7 +253,7 @@ uint8_t TM1637Display::print(uint8_t start_pos, const char* str) {
pos--;
this->buffer_[pos] |= 0b10000000;
} else {
if (pos >= 4) {
if (pos >= 6) {
ESP_LOGE(TAG, "String is too long for the display!");
break;
}