mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
fix webcam init for some cases (#18606)
Co-authored-by: Christian Baars <christianbaars@MacBook-Pro-von-Christian.local>
This commit is contained in:
parent
ae6d435aaf
commit
cf60e34578
@ -135,7 +135,7 @@ struct PICSTORE {
|
|||||||
#endif // ENABLE_RTSPSERVER
|
#endif // ENABLE_RTSPSERVER
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
uint8_t up;
|
uint8_t up = 0;
|
||||||
uint16_t width;
|
uint16_t width;
|
||||||
uint16_t height;
|
uint16_t height;
|
||||||
uint8_t stream_active;
|
uint8_t stream_active;
|
||||||
@ -1456,6 +1456,9 @@ bool Xdrv81(uint32_t function) {
|
|||||||
case FUNC_PRE_INIT:
|
case FUNC_PRE_INIT:
|
||||||
WcInit();
|
WcInit();
|
||||||
break;
|
break;
|
||||||
|
case FUNC_INIT:
|
||||||
|
if(Wc.up == 0) WcSetup(Settings->webcam_config.resolution);
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user