Merge pull request #254 from OlegGirko/fix_esp32_compat

Improve portability between different versions of Arduino-ESP32.
pull/256/head
SQFMI 2024-07-03 12:24:05 -04:00 committed by GitHub
commit 2705fca5ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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; }
int BLE::howManyBytes() { return bytesReceived; }