[esp32_ble] Widen loop variable in as_128bit() to match uuid_.len type (#16088)

This commit is contained in:
Jonathan Swoboda
2026-04-28 16:58:40 -04:00
committed by GitHub
parent 3d195d748c
commit ab6bda50e4
+1 -1
View File
@@ -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);