If exposure is less than _frame.expected, set to 0 (default)

This commit is contained in:
mmcw-dev 2017-10-23 00:37:44 -04:00
parent 24c5331cf2
commit 65b1802390
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,9 @@ function rExposure (req, res, next) {
set = true set = true
} }
if (set) { if (set) {
if (exposure <= intval._frame.expected) {
exposure = 0;
}
intval.setExposure(exposure) intval.setExposure(exposure)
} else { } else {
exposure = intval._state.frame.exposure exposure = intval._state.frame.exposure