diff --git a/drivers/video/v4l2driver.cpp b/drivers/video/v4l2driver.cpp index b02dd24a8f..4088418bb5 100644 --- a/drivers/video/v4l2driver.cpp +++ b/drivers/video/v4l2driver.cpp @@ -1025,7 +1025,7 @@ bool V4L2_Driver::setManualExposure(double duration) */ if (isIGuiderOrIPolar()) { - if (duration <= 0.02f) + if (duration <= 0.2f) { ticks = lround(duration * 100.0f); } @@ -1591,7 +1591,7 @@ void V4L2_Driver::newFrame() } float current_frame_duration_f = (float) current_frame_duration.tv_sec + (float) current_frame_duration.tv_usec / 1000000.0f; - if( !m_StackMode && (current_frame_duration_f < expected_frame_duration * 0.9 || current_frame_duration_f > expected_frame_duration * 1.1)) + if( m_StackMode == STACK_NONE && (current_frame_duration_f < expected_frame_duration * 0.9 || current_frame_duration_f > expected_frame_duration * 1.1)) { LOGF_INFO("Skip frame with incorrect duration (%f seconds)", current_frame_duration_f); return;