Skip to content

Commit

Permalink
Do not update time and location while parked
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Aug 30, 2023
1 parent 9d51133 commit 10fe419
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/telescope/ioptronv3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,10 @@ bool IOptronV3::Handshake()

bool IOptronV3::updateTime(ln_date *utc, double utc_offset)
{
// No communications while parked.
if (TrackState == SCOPE_PARKED)
return true;

bool rc1 = driver->setUTCDateTime(ln_get_julian_day(utc));

bool rc2 = driver->setUTCOffset(utc_offset * 60);
Expand All @@ -991,6 +995,10 @@ bool IOptronV3::updateLocation(double latitude, double longitude, double elevati
{
INDI_UNUSED(elevation);

// No communications while parked.
if (TrackState == SCOPE_PARKED)
return true;

if (longitude > 180)
longitude -= 360;

Expand Down

0 comments on commit 10fe419

Please sign in to comment.