From 6f31cb312b67655bcc183127f90e08c795c77bd5 Mon Sep 17 00:00:00 2001 From: Nathan Seidle Date: Thu, 18 Jul 2024 10:38:54 -0600 Subject: [PATCH] Change patch to be compatible with both v2 and v3 ESP cores --- Firmware/RTK_Everywhere/Patch/BleSerial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }