mirror of
https://github.com/esphome/esphome.git
synced 2026-05-20 01:16:26 +08:00
[esp32_ble] Widen loop variable in as_128bit() to match uuid_.len type (#16088)
This commit is contained in:
@@ -104,7 +104,7 @@ ESPBTUUID ESPBTUUID::as_128bit() const {
|
||||
} else {
|
||||
uuid32 = this->uuid_.uuid.uuid16;
|
||||
}
|
||||
for (uint8_t i = 0; i < this->uuid_.len; i++) {
|
||||
for (uint16_t i = 0; i < this->uuid_.len; i++) {
|
||||
data[12 + i] = ((uuid32 >> i * 8) & 0xFF);
|
||||
}
|
||||
return ESPBTUUID::from_raw(data);
|
||||
|
||||
Reference in New Issue
Block a user