Skip to content

Commit

Permalink
Ignore the BIN value read from INDI driver on startup. Fix #910 (#911)
Browse files Browse the repository at this point in the history
The BIN value will reset to 1, dropping the dark library of the profile
  • Loading branch information
pludov committed Mar 3, 2021
1 parent 1a08361 commit 6df2e2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cam_indi.cpp
Expand Up @@ -314,10 +314,9 @@ void CameraINDI::newNumber(INumberVectorProperty *nvp)
else if (nvp == binning_prop)
{
MaxBinning = wxMin(binning_x->max, binning_y->max);
Binning = wxMin(binning_x->value, binning_y->value);
m_curBinning = wxMin(binning_x->value, binning_y->value);
if (Binning > MaxBinning)
Binning = MaxBinning;
m_curBinning = Binning;
// defer defining FullSize since it is not simply derivable from max size and binning
// no: FullSize = wxSize(m_maxSize.x / Binning, m_maxSize.y / Binning);
}
Expand Down

0 comments on commit 6df2e2b

Please sign in to comment.