From 341bbb5980faf9dfbeb4684b156ebacf22395049 Mon Sep 17 00:00:00 2001 From: Daniel Sissom Date: Wed, 5 Jun 2024 15:38:57 -0500 Subject: [PATCH] Changed motor status from atHome to Homed when GHS returns 1. --- dsmApp/src/MD90Driver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsmApp/src/MD90Driver.cpp b/dsmApp/src/MD90Driver.cpp index ec4f9ed..52dc57a 100644 --- a/dsmApp/src/MD90Driver.cpp +++ b/dsmApp/src/MD90Driver.cpp @@ -261,7 +261,7 @@ asynStatus MD90Axis::poll(bool *moving) int replyValue; int done; int driveOn; - int home; + int homed; double position; asynStatus comStatus; @@ -330,8 +330,8 @@ asynStatus MD90Axis::poll(bool *moving) if (comStatus) goto skip; // The response string is of the form "0: Home status: 1" sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue); - home = (replyValue == '1') ? 1:0; - setIntegerParam(pC_->motorStatusAtHome_, home); + homed = (replyValue == '1') ? 1:0; + setIntegerParam(pC_->motorStatusHomed_, homed); // Read the drive power on status sprintf(pC_->outString_, "GPS");