Skip to content

Commit 253be8e

Browse files
committed
Changed .data to .c_str
1 parent 841d697 commit 253be8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/BLE/src/BLEBeacon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void BLEBeacon::setData(String data) {
5757
log_e("Unable to set the data ... length passed in was %d and expected %d", data.length(), sizeof(m_beaconData));
5858
return;
5959
}
60-
memcpy(&m_beaconData, data.data(), sizeof(m_beaconData));
60+
memcpy(&m_beaconData, data.c_str(), sizeof(m_beaconData));
6161
} // setData
6262

6363
void BLEBeacon::setMajor(uint16_t major) {

0 commit comments

Comments
 (0)