10000 Fix array dereferencing · wangleifool/esp32-snippets@b50dec3 · GitHub
[go: up one dir, main page]

Skip to content

Commit b50dec3

Browse files
committed
Fix array dereferencing
1 parent b367e5a commit b50dec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp_utils/BLEAdvertising.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ void BLEAdvertisementData::setCompleteServices(BLEUUID uuid) {
300300
// [Len] [0x04] [0] [1] ... [15]
301301
cdata[0] = 17;
302302
cdata[1] = ESP_BLE_AD_TYPE_128SRV_CMPL; // 0x07
303-
addData(std::string(cdata, 2) + std::string((char*) &uuid.getNative()->uuid.uuid128, 16));
303+
addData(std::string(cdata, 2) + std::string((char*) uuid.getNative()->uuid.uuid128, 16));
304304
break;
305305
}
306306

0 commit comments

Comments
 (0)
0