Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webcam v2 tweaks 2024 #20451

Merged
merged 3 commits into from Jan 9, 2024
Merged

Conversation

btsimonh
Copy link
Contributor

@btsimonh btsimonh commented Jan 9, 2024

Description:

Minor updates to fix enable/disable video on main menu.
This is in the webcamv2 driver only.

Previously, every time flash was saved, it would stop and restart the video webserver port.
This PR disables that, so that on flash/SD action, it only stops and then starts the cam itself, which I believe was the orginal intent.

The bug was that on enable/disable of menu video, a flash save occurred. Sometimes, the browser would have connected to the video webserver port before it was then disabled/removed - and so the menu video would stop.

It also changes the command used by the menu item 'Turn On Video'/'Turn Off Video' to be called wcMenuVideoDisable, and uses 0/1 parameter, so making the command much more 'TAS' like. since this command was only used by the menu, it's little risk to change,

These are minor changes and are as a result of testing with arduino V3.

I can report basic operation of webcam v2 with esp32 and esp32s3 is ok. (the bug this PR relates to is NOT related to arduino v3).

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.4.9
  • The code change is tested and works with Tasmota core ESP32 V.2.0.14
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

@arendst arendst merged commit fa959d9 into arendst:development Jan 9, 2024
64 checks passed
hawa-lc4 pushed a commit to hawa-lc4/Tasmota-dev that referenced this pull request Jan 20, 2024
* suppress compiler warning about 'used' function

* don't stop and start cam webserver every time we save to flash.  Only stop the actual cam clock.

* change cmds WcMenuVideoon and wcmenuvideooff to be wcmenuvideodisable 0/1 to be more TAS like, and save a little.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants