limit auto exposure values to range -2 to +2

This commit is contained in:
Joo Aun Saw
2024-01-11 11:13:46 +11:00
committed by CaCO3
parent ac4f823cbf
commit 53e8cf49f9

View File

@@ -175,6 +175,7 @@ bool CCamera::SetBrightnessContrastSaturation(int _brightness, int _contrast, in
_brightness = min(2, max(-2, _brightness));
_contrast = min(2, max(-2, _contrast));
_saturation = min(2, max(-2, _saturation));
_autoExposureLevel = min(2, max(-2, _autoExposureLevel));
sensor_t * s = esp_camera_sensor_get();
if (s) {