From 747069d2f0c716f6a1adec9f7fbda4e05b57d96c Mon Sep 17 00:00:00 2001 From: Joe13905179063 <150975019+Joe13905179063@users.noreply.github.com> Date: Thu, 14 Dec 2023 07:26:23 +0800 Subject: [PATCH] Add files via upload --- drivers/focuser/ieaffocus.cpp | 19 +++++++++++-------- drivers/focuser/ieaffocus.h | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/drivers/focuser/ieaffocus.cpp b/drivers/focuser/ieaffocus.cpp index 8b70b1c719..09fe5d98c3 100644 --- a/drivers/focuser/ieaffocus.cpp +++ b/drivers/focuser/ieaffocus.cpp @@ -422,13 +422,16 @@ bool iEAFFocus::MoveMyFocuser(uint32_t position) return true; } -/* + bool iEAFFocus::ReverseFocuser(bool enabled) { int nbytes_written = 0, rc = -1; char errstr[MAXRBUF]; - char cmd[12]; - + // char cmd[12]; + if (enabled) + { + ; + } // Change Direction if ( (rc = tty_write(PortFD, ":FR#", 4, &nbytes_written)) != TTY_OK) @@ -438,7 +441,7 @@ bool iEAFFocus::ReverseFocuser(bool enabled) return false; } - +/* if (enabled) { FocusReverseS[INDI_ENABLED].s = ISS_ON; @@ -450,9 +453,9 @@ bool iEAFFocus::ReverseFocuser(bool enabled) FocusReverseS[INDI_DISABLED].s = ISS_ON; } +*/ - - +/* if (FocusReverseS[INDI_DISABLED].s == ISS_ON) { FocusReverseS[INDI_ENABLED].s = ISS_ON; @@ -461,12 +464,12 @@ bool iEAFFocus::ReverseFocuser(bool enabled) { FocusReverseS[INDI_DISABLED].s = ISS_ON; } - +*/ return true; } -*/ + void iEAFFocus::setZero() { diff --git a/drivers/focuser/ieaffocus.h b/drivers/focuser/ieaffocus.h index e216bd65f1..aeee963be7 100644 --- a/drivers/focuser/ieaffocus.h +++ b/drivers/focuser/ieaffocus.h @@ -39,7 +39,7 @@ class iEAFFocus : public INDI::Focuser virtual bool AbortFocuser() override; virtual void TimerHit() override; // virtual bool saveConfigItems(FILE * fp) override; -// virtual bool ReverseFocuser(bool enabled) override; + virtual bool ReverseFocuser(bool enabled) override; private: unsigned int maxpos{ 0 };