mirror of https://github.com/arendst/Tasmota.git
Fixed ESP32 Webcam broken
Fixed ESP32 Webcam broken regression from #9590
This commit is contained in:
parent
1021cf3ca5
commit
f3498f031b
|
@ -39,6 +39,7 @@ All notable changes to this project will be documented in this file.
|
||||||
- Scripter memory alignment (#9608)
|
- Scripter memory alignment (#9608)
|
||||||
- Zigbee battery percentage (#9607)
|
- Zigbee battery percentage (#9607)
|
||||||
- HassAnyKey anomaly (#9601)
|
- HassAnyKey anomaly (#9601)
|
||||||
|
- ESP32 Webcam broken regression from #9590
|
||||||
|
|
||||||
## [9.0.0.1] - 20201010
|
## [9.0.0.1] - 20201010
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -814,10 +814,15 @@ uint32_t WcSetStreamserver(uint32_t flag) {
|
||||||
if (flag) {
|
if (flag) {
|
||||||
if (!CamServer) {
|
if (!CamServer) {
|
||||||
CamServer = new ESP8266WebServer(81);
|
CamServer = new ESP8266WebServer(81);
|
||||||
WebServer_on(PSTR("/"), HandleWebcamRoot);
|
CamServer->on("/", HandleWebcamRoot);
|
||||||
WebServer_on(PSTR("/cam.mjpeg"), HandleWebcamMjpeg);
|
CamServer->on("/cam.mjpeg", HandleWebcamMjpeg);
|
||||||
WebServer_on(PSTR("/cam.jpg"), HandleWebcamMjpeg);
|
CamServer->on("/cam.jpg", HandleWebcamMjpeg);
|
||||||
WebServer_on(PSTR("/stream"), 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"));
|
AddLog_P2(LOG_LEVEL_DEBUG, PSTR("CAM: Stream init"));
|
||||||
CamServer->begin();
|
CamServer->begin();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue