diff --git a/tasmota/tasmota_xdrv_driver/xdrv_81_esp32_webcam.ino b/tasmota/tasmota_xdrv_driver/xdrv_81_esp32_webcam.ino index a8590a4da..465fb0a63 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_81_esp32_webcam.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_81_esp32_webcam.ino @@ -974,14 +974,14 @@ uint32_t WcSetStreamserver(uint32_t flag) { void WcInterruptControl() { WcSetStreamserver(Settings->webcam_config.stream); - WcSetup(Settings->webcam_config.resolution); + if(Wc.up != 0) {WcSetup(Settings->webcam_config.resolution);} } /*********************************************************************************************/ void WcLoop(void) { - if (4 == Wc.stream_active) { return; } + // if (4 == Wc.stream_active) { return; } if (Wc.CamServer) { Wc.CamServer->handleClient(); @@ -1042,11 +1042,10 @@ void WcShowStream(void) { // if (!Wc.CamServer || !Wc.up) { if (!Wc.CamServer) { WcInterruptControl(); - delay(50); // Give the webcam webserver some time to prepare the stream } - if (Wc.CamServer && Wc.up) { - WSContentSend_P(PSTR("