diff --git a/esphome/components/tm1637/tm1637.cpp b/esphome/components/tm1637/tm1637.cpp index ff8d5ea1bd..a21d2d438d 100644 --- a/esphome/components/tm1637/tm1637.cpp +++ b/esphome/components/tm1637/tm1637.cpp @@ -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 {