diff --git a/Firmware/RTK_Everywhere/Patch/BleSerial.cpp b/Firmware/RTK_Everywhere/Patch/BleSerial.cpp index 0debac6b1..02653ca10 100644 --- a/Firmware/RTK_Everywhere/Patch/BleSerial.cpp +++ b/Firmware/RTK_Everywhere/Patch/BleSerial.cpp @@ -164,7 +164,7 @@ void BleSerial::onWrite(BLECharacteristic *pCharacteristic) { if (pCharacteristic->getUUID().toString() == BLE_RX_UUID) { - String value = pCharacteristic->getValue(); + String value = String(pCharacteristic->getValue().c_str(), pCharacteristic->getValue().length()); for (int i = 0; i < value.length(); i++) receiveBuffer.add(value[i]); }