1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00

Fix tm1637 bootloop (#2929)

This commit is contained in:
Jonas De Kegel
2021-12-20 18:06:04 +01:00
committed by GitHub
parent 542fb2175b
commit 1ccee86705

View File

@@ -176,7 +176,7 @@ void TM1637Display::display() {
// Write the data bytes
if (this->inverted_) {
for (uint8_t i = this->length_ - 1; i >= 0; i--) {
for (int8_t i = this->length_ - 1; i >= 0; i--) {
this->send_byte_(this->buffer_[i]);
}
} else {