Skip to content

Commit 14c4827

Browse files
committed
Changed .data to .c_str
1 parent 792fb3e commit 14c4827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/BLE/src/BLEBeacon.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void BLEBeacon::setData(String data) {
5454
log_e("Unable to set the data ... length passed in was %d and expected %d", data.length(), sizeof(m_beaconData));
5555
return;
5656
}
57-
memcpy(&m_beaconData, data.data(), sizeof(m_beaconData));
57+
memcpy(&m_beaconData, data.c_str(), sizeof(m_beaconData));
5858
} // setData
5959

6060
void BLEBeacon::setMajor(uint16_t major) {

0 commit comments

Comments
 (0)