Skip to content

Commit

Permalink
PR feedback: Remove excessive debug logging (and tweak comparator)
Browse files Browse the repository at this point in the history
  • Loading branch information
daleghent committed Oct 28, 2024
1 parent f05d5be commit e98547c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cam_qhy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,15 +948,13 @@ bool Camera_QHY::Capture(int duration, usImage& img, int options, const wxRect&
*/
if (ret == QHYCCD_READ_DIRECTLY)
{
if (duration > 3000)
if (duration >= 3000)
{
Debug.Write(wxString::Format("QHY: 2000ms delay needed\n"));
WorkerThread::MilliSleep(2000);
}
}
else
{
Debug.Write(wxString::Format("QHY: %dms delay needed\n", duration));
WorkerThread::MilliSleep(duration);
}

Expand Down

0 comments on commit e98547c

Please sign in to comment.