mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-13 00:46:38 +02:00
ESP32 build corrected
This commit is contained in:
parent
aca1688ceb
commit
677acb9416
4 changed files with 27 additions and 4 deletions
|
@ -431,7 +431,9 @@ void web::showUpdate(AsyncWebServerRequest *request) {
|
|||
void web::showUpdate2(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
|
||||
if(!index) {
|
||||
Serial.printf("Update Start: %s\n", filename.c_str());
|
||||
#ifndef ESP32
|
||||
Update.runAsync(true);
|
||||
#endif
|
||||
if(!Update.begin((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000)) {
|
||||
Update.printError(Serial);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue