Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
joe13905179063 authored Dec 13, 2023
1 parent acb6861 commit 747069d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions drivers/focuser/ieaffocus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -438,7 +441,7 @@ bool iEAFFocus::ReverseFocuser(bool enabled)
return false;
}

/*
if (enabled)
{
FocusReverseS[INDI_ENABLED].s = ISS_ON;
Expand All @@ -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;
Expand All @@ -461,12 +464,12 @@ bool iEAFFocus::ReverseFocuser(bool enabled)
{
FocusReverseS[INDI_DISABLED].s = ISS_ON;
}
*/

return true;
}

*/


void iEAFFocus::setZero()
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/focuser/ieaffocus.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 747069d

Please sign in to comment.