mirror of https://github.com/sqfmi/Watchy.git
Compare commits
2 Commits
41d8917c76
...
2705fca5ba
Author | SHA1 | Date |
---|---|---|
SQFMI | 2705fca5ba | |
Oleg Girko | 74b38547fe |
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue