use setExposureScale to properly calculate time after autoscaling.

This commit is contained in:
mmcw-dev 2017-10-23 01:20:20 -04:00
parent 6801f30881
commit 0fcd6d0970
1 changed files with 1 additions and 4 deletions

View File

@ -474,7 +474,6 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"
'use strict';
var exposure;
var scale;
var scaledExposure;
if (res.frame.dir !== true) {
$('#dir').prop('checked', true);
STATE.dir = res.frame.dir;
@ -489,11 +488,9 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"
STATE.exposure = res.frame.exposure;
exposure = shutter(STATE.exposure);
scale = scaleAuto(STATE.exposure);
STATE.scale = scale;
scaledExposure = scaleTime(STATE.exposure, STATE.scale);
$('#str').text(exposure.str);
$('#exposure').val(scaledExposure);
$('#scale').val(scale);
setExposureScale();
$('#delay').val(res.frame.delay);
STATE.delay = res.frame.delay;