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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {