Fix Advertised device initialization.

This commit is contained in:
h2zero 2024-10-06 15:03:11 -06:00
parent 758c4d0471
commit b807e6671f

View file

@ -47,7 +47,7 @@ NimBLEAdvertisedDevice::NimBLEAdvertisedDevice(const ble_gap_event* event, uint8
m_rssi{event->disc.rssi},
m_callbackSent{0},
m_advLength{event->disc.length_data},
m_payload{event->disc.data, event->disc.data + event->disc.length_data} {
m_payload(event->disc.data, event->disc.data + event->disc.length_data) {
# endif
} // NimBLEAdvertisedDevice