Skip to content

Commit

Permalink
Guide active status doesn't apply to pulse guide
Browse files Browse the repository at this point in the history
  • Loading branch information
hjd1964 committed Jun 4, 2022
1 parent 08a1da0 commit 3b73bff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Command.ino
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,8 @@ void processCommands() {
if (atHome) reply[i++]='H'; // at [H]ome
if (ppsSynced) reply[i++]='S'; // PPS [S]ync
if (isPulseGuiding()) reply[i++]='G'; // pulse [G]uide active
if (guideDirAxis1 || guideDirAxis2) reply[i++]='g'; // [g]uide active
if ((guideDirAxis1 || guideDirAxis2) && !isPulseGuiding())
reply[i++]='g'; // [g]uide active
#if MOUNT_TYPE != ALTAZM
if (rateCompensation == RC_REFR_RA) { reply[i++]='r'; reply[i++]='s'; } // [r]efr enabled [s]ingle axis
if (rateCompensation == RC_REFR_BOTH) { reply[i++]='r'; } // [r]efr enabled
Expand Down Expand Up @@ -783,7 +784,8 @@ void processCommands() {
}

if (syncToEncodersOnly) reply[1]|=0b10000100; // sync to encoders only
if (guideDirAxis1 || guideDirAxis2) reply[1]|=0b10001000; // guide active
if ((guideDirAxis1 || guideDirAxis2) && !isPulseGuiding())
reply[1]|=0b10001000; // guide active
if (atHome) reply[2]|=0b10000001; // At home
if (waitingHome) reply[2]|=0b10000010; // Waiting at home
if (pauseHome) reply[2]|=0b10000100; // Pause at home enabled?
Expand Down

0 comments on commit 3b73bff

Please sign in to comment.