You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was tinkering with the ESP32 Camera Web Server example.
In line 78 of app_httpd.cpp I modified the value of CONFIG_LED_MAX_INTENSITY since a much lower value is bright enough for me and high values make the LED worryingly hot when streaming.
It works OK except after taking a picture with flash. The following steps should reproduce the issue:
Enter the web UI
Start streaming
Set LED intensity at a high value (ex. 255)
The LED intensity is topped at the value set in CONFIG_LED_MAX_INTENSITY as expected
Stop streaming
Take a picture using the flash still set in a high value, it will not be limited by CONFIG_LED_MAX_INTENSITY, which seems to be the desired behavior (see this fragment of code)
Start streaming again
Expected behavior:
The LED intensity is topped at the value set in CONFIG_LED_MAX_INTENSITY
Observed behavior:
The LED intensity is the same as when taking a picture (the high value)
I have found that the issue can be fixed setting the streaming flag before switching the LED on; i.e. replace
Hi, @mondolirondo thanks for catching the issue and for the excellent description - I was able to reproduce it quickly and can confirm the problem and your solution.
We are an open-source project and welcome contributions from users. Since you already have the solution, could you please create a Pull Request with your fix? I don't want to take credit for your work ;-)
On the other hand, if you explicitly ask me to do it for you, that is no problem either.
Board
ESP32-CAM
Device Description
None
Hardware Configuration
Nothing
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows 11
Flash frequency
IDK
PSRAM enabled
yes
Upload speed
115200
Description
I was tinkering with the ESP32 Camera Web Server example.
In line 78 of app_httpd.cpp I modified the value of CONFIG_LED_MAX_INTENSITY since a much lower value is bright enough for me and high values make the LED worryingly hot when streaming.
It works OK except after taking a picture with flash. The following steps should reproduce the issue:
Expected behavior:
The LED intensity is topped at the value set in CONFIG_LED_MAX_INTENSITY
Observed behavior:
The LED intensity is the same as when taking a picture (the high value)
I have found that the issue can be fixed setting the streaming flag before switching the LED on; i.e. replace
in this portion of code with
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: