Skip to content

Commit 1619dd0

Browse files
committed
BLE.setAdvertisedServiceData: adopt _valueLength limit
1 parent ab7509f commit 1619dd0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/local/BLELocalCharacteristic.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ int BLELocalCharacteristic::writeValue(const uint8_t value[], int length)
126126

127127
if (_broadcast) {
128128
uint16_t serviceUuid = GATT.serviceUuidForCharacteristic(this);
129-
130-
BLE.setAdvertisedServiceData(serviceUuid, value, length);
131-
129+
BLE.setAdvertisedServiceData(serviceUuid, value, _valueLength);
132130
if (!ATT.connected() && GAP.advertising()) {
133131
BLE.advertise();
134132
}

0 commit comments

Comments
 (0)