Skip to content

Commit

Permalink
Change patch to be compatible with both v2 and v3 ESP cores
Browse files Browse the repository at this point in the history
  • Loading branch information
nseidle committed Jul 18, 2024
1 parent 73a31f5 commit 6f31cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Firmware/RTK_Everywhere/Patch/BleSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 6f31cb3

Please sign in to comment.