Skip to content

Commit 94b188e

Browse files
committed
Update Patch\BleSerial.cpp - patch works on both 3.0.0 and older 2.0.2 / 2.0.11
1 parent d540d10 commit 94b188e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Firmware/RTK_Everywhere/Patch/BleSerial.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ void BleSerial::onWrite(BLECharacteristic *pCharacteristic)
164164
{
165165
if (pCharacteristic->getUUID().toString() == BLE_RX_UUID)
166166
{
167-
String value = pCharacteristic->getValue();
168-
167+
String value = pCharacteristic->getValue().c_str();
169168
for (int i = 0; i < value.length(); i++)
170169
receiveBuffer.add(value[i]);
171170
}

0 commit comments

Comments
 (0)