Skip to content

Commit

Permalink
Fix, custom guide rate override on rate set
Browse files Browse the repository at this point in the history
  • Loading branch information
hjd1964 committed Oct 19, 2021
1 parent a9cb8cc commit cbd0b39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Guide.ino
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,11 @@ int getPulseGuideRate() {
void enableGuideRate(int g) {
if (g == activeGuideRate) return;

if (g >= 0) activeGuideRate=g;
if (g >= 0) {
activeGuideRate=g;
guideTimerCustomRateAxis1 = 0.0;
guideTimerCustomRateAxis2 = 0.0;
}

// this enables the guide rates
if (guideTimerCustomRateAxis1 != 0.0) {
Expand Down

0 comments on commit cbd0b39

Please sign in to comment.