mirror of https://github.com/sqfmi/Watchy.git
Merge pull request #254 from OlegGirko/fix_esp32_compat
Improve portability between different versions of Arduino-ESP32.pull/256/head
commit
2705fca5ba
|
@ -38,7 +38,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
void otaCallback::onWrite(BLECharacteristic *pCharacteristic) {
|
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
|
if (!updateFlag) { // If it's the first packet of OTA since bootup, begin OTA
|
||||||
// Serial.println("Begin FW Update");
|
// Serial.println("Begin FW Update");
|
||||||
esp_ota_begin(esp_ota_get_next_update_partition(NULL), OTA_SIZE_UNKNOWN,
|
esp_ota_begin(esp_ota_get_next_update_partition(NULL), OTA_SIZE_UNKNOWN,
|
||||||
|
|
Loading…
Reference in New Issue