Skip to content

Commit

Permalink
OnStep: Don't show focuser tab unless found. (indilib#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-lan authored Nov 14, 2021
1 parent 9a318f3 commit 9108a3f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/telescope/lx200_OnStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,8 @@ void LX200_OnStep::ISGetProperties(const char *dev)

bool LX200_OnStep::updateProperties()
{
// int i;
// char cmd[32];
LX200Generic::updateProperties();
FI::updateProperties();
//TODO: Properly setup Weather
WI::updateProperties();

if (isConnected())
Expand Down Expand Up @@ -535,6 +533,11 @@ bool LX200_OnStep::updateProperties()
{
LOG_INFO("No Focusers found");
}
else
{
LOG_INFO("At least one focuser found, showing interface");
FI::updateProperties();
}

LOG_DEBUG("Focusers checked Variables:");
LOGF_DEBUG("OSFocuser1: %d, OSFocuser2: %d, OSNumFocusers: %i", OSFocuser1, OSFocuser2, OSNumFocusers);
Expand Down

0 comments on commit 9108a3f

Please sign in to comment.