diff --git a/ESP/lib/src/network/api/baseAPI/baseAPI.cpp b/ESP/lib/src/network/api/baseAPI/baseAPI.cpp index cf32259..98dbae3 100644 --- a/ESP/lib/src/network/api/baseAPI/baseAPI.cpp +++ b/ESP/lib/src/network/api/baseAPI/baseAPI.cpp @@ -465,8 +465,8 @@ void BaseAPI::setCameraVar(AsyncWebServerRequest *request) void BaseAPI::restartCamera(AsyncWebServerRequest *request) { - int mode = atoi(request->arg("mode").c_str()); - camera->resetCamera((bool)mode); + bool mode = (bool)atoi(request->arg("mode").c_str()); + camera->resetCamera(mode); request->send(200, MIMETYPE_JSON, "{\"msg\":\"Done. Camera had been restarted.\"}"); } diff --git a/ESP/platformio.ini b/ESP/platformio.ini index 8d8b49c..4ee0cea 100644 --- a/ESP/platformio.ini +++ b/ESP/platformio.ini @@ -108,7 +108,6 @@ lib_deps = esp32-camera leftcoast/LC_baseTools@^1.5 ; geeksville/Micro-RTSP @ ^0.1.6 ; Micro-RTSP library for streaming video over RTSP - will be implemented soon - https://github.com/ZanzyTHEbar/EasyPreferencesLibrary.git https://github.com/me-no-dev/ESPAsyncWebServer.git https://github.com/me-no-dev/AsyncTCP.git https://github.com/bblanchon/ArduinoJson.git diff --git a/ESP/tools/versioning b/ESP/tools/versioning index 301160a..3cacc0b 100644 --- a/ESP/tools/versioning +++ b/ESP/tools/versioning @@ -1 +1 @@ -8 \ No newline at end of file +12 \ No newline at end of file