mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
update
- Re-write bool cast for restartCamera method - Removed preferencesapi library - no longer needed
This commit is contained in:
parent
35d615e96c
commit
9b965c224b
@ -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.\"}");
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1 +1 @@
|
||||
8
|
||||
12
|
||||
Loading…
Reference in New Issue
Block a user