mirror of
https://github.com/esphome/esphome.git
synced 2025-10-08 21:03:49 +01:00
[esp32_ble] Fix clang-tidy sign comparison error (#11048)
This commit is contained in:
@@ -152,7 +152,7 @@ void BLEAdvertising::loop() {
|
|||||||
if (now - this->last_advertisement_time_ > this->advertising_cycle_time_) {
|
if (now - this->last_advertisement_time_ > this->advertising_cycle_time_) {
|
||||||
this->stop();
|
this->stop();
|
||||||
this->current_adv_index_ += 1;
|
this->current_adv_index_ += 1;
|
||||||
if (this->current_adv_index_ >= this->raw_advertisements_callbacks_.size()) {
|
if (static_cast<size_t>(this->current_adv_index_) >= this->raw_advertisements_callbacks_.size()) {
|
||||||
this->current_adv_index_ = -1;
|
this->current_adv_index_ = -1;
|
||||||
}
|
}
|
||||||
this->start();
|
this->start();
|
||||||
|
Reference in New Issue
Block a user