Description
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:
- 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
enable_led(true);
isStreaming = true;
in this portion of code with
isStreaming = true;
enable_led(true);
Sketch
No code required, can be reproduced directly in the web UI.
Debug Message
No error message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.