diff --git a/ESPWebDAV.cpp b/ESPWebDAV.cpp index 2e87b74..091530c 100644 --- a/ESPWebDAV.cpp +++ b/ESPWebDAV.cpp @@ -1088,7 +1088,7 @@ void ESPWebDAVCore::handlePut(ResourceType resource) size_t written = 0; while (written < numRead) { - auto numWrite = file.write(buf + written, numRead - written); + auto numWrite = file.write((uint8_t*)buf + written, numRead - written); if (numWrite == 0 || (int)numWrite == -1) { DBG_PRINT("error: numread=%d write=%d written=%d", (int)numRead, (int)numWrite, (int)written); diff --git a/WebSrv.cpp b/WebSrv.cpp index e9bd1b3..16e38d2 100644 --- a/WebSrv.cpp +++ b/WebSrv.cpp @@ -97,7 +97,7 @@ void ESPWebDAV::handleClient() { // no or sleeping current client // take it over - locClient = server->available(); + locClient = server->accept(); m_persistent_timer_ms = millis(); DBG_PRINT("NEW CLIENT-------------------------------------------------------"); } diff --git a/examples/Hooked/Hooked.ino b/examples/Hooked/Hooked.ino index 66d7d1a..745896d 100644 --- a/examples/Hooked/Hooked.ino +++ b/examples/Hooked/Hooked.ino @@ -161,7 +161,7 @@ void help() Serial.printf("interactive: F/ormat D/ir C/reateFile\n"); uint32_t freeHeap; - uint16_t maxBlock; + uint32_t maxBlock; uint8_t fragmentation; ESP.getHeapStats(&freeHeap, &maxBlock, &fragmentation); Serial.printf("Heap stats: free heap: %u - max block: %u - fragmentation: %u%%\n",