diff --git a/CHANGELOG.md b/CHANGELOG.md index 01322f166..7b4279acf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ All notable changes to this project will be documented in this file. - Scripter memory alignment (#9608) - Zigbee battery percentage (#9607) - HassAnyKey anomaly (#9601) +- ESP32 Webcam broken regression from #9590 ## [9.0.0.1] - 20201010 ### Added diff --git a/tasmota/xdrv_81_webcam.ino b/tasmota/xdrv_81_webcam.ino index 18eaf04d7..0b3c35193 100755 --- a/tasmota/xdrv_81_webcam.ino +++ b/tasmota/xdrv_81_webcam.ino @@ -814,10 +814,15 @@ uint32_t WcSetStreamserver(uint32_t flag) { if (flag) { if (!CamServer) { CamServer = new ESP8266WebServer(81); - WebServer_on(PSTR("/"), HandleWebcamRoot); - WebServer_on(PSTR("/cam.mjpeg"), HandleWebcamMjpeg); - WebServer_on(PSTR("/cam.jpg"), HandleWebcamMjpeg); - WebServer_on(PSTR("/stream"), HandleWebcamMjpeg); + CamServer->on("/", HandleWebcamRoot); + CamServer->on("/cam.mjpeg", HandleWebcamMjpeg); + CamServer->on("/cam.jpg", HandleWebcamMjpeg); + CamServer->on("/stream", HandleWebcamMjpeg); + +// WebServer_on(PSTR("/"), HandleWebcamRoot); +// WebServer_on(PSTR("/cam.mjpeg"), HandleWebcamMjpeg); +// WebServer_on(PSTR("/cam.jpg"), HandleWebcamMjpeg); +// WebServer_on(PSTR("/stream"), HandleWebcamMjpeg); AddLog_P2(LOG_LEVEL_DEBUG, PSTR("CAM: Stream init")); CamServer->begin(); }