mirror of
https://github.com/esphome/esphome.git
synced 2025-10-08 04:43:46 +01:00
[max7219digit] Fix clang-tidy sign comparison error (#11060)
This commit is contained in:
@@ -90,7 +90,7 @@ void MAX7219Component::loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this->scroll_mode_ == ScrollMode::STOP) {
|
if (this->scroll_mode_ == ScrollMode::STOP) {
|
||||||
if (this->stepsleft_ + get_width_internal() == first_line_size + 1) {
|
if (static_cast<size_t>(this->stepsleft_ + get_width_internal()) == first_line_size + 1) {
|
||||||
if (millis_since_last_scroll < this->scroll_dwell_) {
|
if (millis_since_last_scroll < this->scroll_dwell_) {
|
||||||
ESP_LOGVV(TAG, "Dwell time at end of string in case of stop at end. Step %d, since last scroll %d, dwell %d.",
|
ESP_LOGVV(TAG, "Dwell time at end of string in case of stop at end. Step %d, since last scroll %d, dwell %d.",
|
||||||
this->stepsleft_, millis_since_last_scroll, this->scroll_dwell_);
|
this->stepsleft_, millis_since_last_scroll, this->scroll_dwell_);
|
||||||
|
Reference in New Issue
Block a user