diff --git a/src/BLE.cpp b/src/BLE.cpp index a916557..5f230ff 100644 --- a/src/BLE.cpp +++ b/src/BLE.cpp @@ -38,7 +38,7 @@ public: }; void otaCallback::onWrite(BLECharacteristic *pCharacteristic) { - String rxData = pCharacteristic->getValue(); + auto rxData = pCharacteristic->getValue(); if (!updateFlag) { // If it's the first packet of OTA since bootup, begin OTA // Serial.println("Begin FW Update"); esp_ota_begin(esp_ota_get_next_update_partition(NULL), OTA_SIZE_UNKNOWN, @@ -127,4 +127,4 @@ bool BLE::begin(const char *localName = "Watchy BLE OTA") { int BLE::updateStatus() { return status; } -int BLE::howManyBytes() { return bytesReceived; } \ No newline at end of file +int BLE::howManyBytes() { return bytesReceived; }