Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
beaglebot committed Mar 6, 2024
1 parent 0aabd77 commit 0493b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/v4l2driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0493b64

Please sign in to comment.