From a407e85144914d6b49e228e747b87ea66bb8d825 Mon Sep 17 00:00:00 2001 From: Jasem Mutlaq Date: Sun, 26 Dec 2021 09:46:14 +0300 Subject: [PATCH] Fix MacOS compile error --- drivers/telescope/pmc8.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/telescope/pmc8.h b/drivers/telescope/pmc8.h index 6691bfa9a0..d73b8ef433 100644 --- a/drivers/telescope/pmc8.h +++ b/drivers/telescope/pmc8.h @@ -2,10 +2,10 @@ INDI Explore Scientific PMC8 driver Copyright (C) 2017 Michael Fulbright - Additional contributors: + Additional contributors: Thomas Olson, Copyright (C) 2019 Karl Rees, Copyright (C) 2019-2021 - + Based on IEQPro driver. This library is free software; you can redistribute it and/or @@ -32,10 +32,10 @@ typedef enum { PMC8_MOVE_INACTIVE, PMC8_MOVE_RAMPING, PMC8_MOVE_ACTIVE } PMC8_MOVE_STATE; typedef enum { PMC8_RAMP_UP, PMC8_RAMP_DOWN } PMC8_RAMP_DIRECTION; -typedef struct +typedef struct PMC8MoveInfo { PMC8_MOVE_STATE state = PMC8_MOVE_INACTIVE; - uint8_t moveDir = 0; + uint8_t moveDir = 0; int targetRate = 0; int rampIteration = 0; int rampLastStep = 0; @@ -121,14 +121,14 @@ class PMC8 : public INDI::Telescope, public INDI::GuiderInterface //GUIDE variables. int GuideNSTID; int GuideWETID; - + // Move static void rampTimeoutHelperN(void *p); static void rampTimeoutHelperS(void *p); static void rampTimeoutHelperE(void *p); static void rampTimeoutHelperW(void *p); bool ramp_movement(PMC8_DIRECTION calldir); - + int getSlewRate(); private: @@ -137,8 +137,8 @@ class PMC8 : public INDI::Telescope, public INDI::GuiderInterface */ void getStartupData(); - uint8_t convertToPMC8TrackMode(uint8_t mode); - uint8_t convertFromPMC8TrackMode(uint8_t mode); + uint8_t convertToPMC8TrackMode(uint8_t mode); + uint8_t convertFromPMC8TrackMode(uint8_t mode); /* Firmware */ IText FirmwareT[1] {}; @@ -154,7 +154,7 @@ class PMC8 : public INDI::Telescope, public INDI::GuiderInterface INumber LegacyGuideRateN[1]; INumberVectorProperty LegacyGuideRateNP; - /* Move Ramp Settings */ + /* Move Ramp Settings */ INumber RampN[3]; INumberVectorProperty RampNP; @@ -172,10 +172,10 @@ class PMC8 : public INDI::Telescope, public INDI::GuiderInterface double currentTrackRate = 0; int trackingPollCounter = 0; - + bool isPulsingNS = false; bool isPulsingWE = false; - + PMC8MoveInfo moveInfoRA, moveInfoDEC; //PMC8Info scopeInfo;