mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
Changed motor status from atHome to Homed when GHS returns 1.
This commit is contained in:
@@ -261,7 +261,7 @@ asynStatus MD90Axis::poll(bool *moving)
|
|||||||
int replyValue;
|
int replyValue;
|
||||||
int done;
|
int done;
|
||||||
int driveOn;
|
int driveOn;
|
||||||
int home;
|
int homed;
|
||||||
double position;
|
double position;
|
||||||
asynStatus comStatus;
|
asynStatus comStatus;
|
||||||
|
|
||||||
@@ -330,8 +330,8 @@ asynStatus MD90Axis::poll(bool *moving)
|
|||||||
if (comStatus) goto skip;
|
if (comStatus) goto skip;
|
||||||
// The response string is of the form "0: Home status: 1"
|
// The response string is of the form "0: Home status: 1"
|
||||||
sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue);
|
sscanf (pC_->inString_, "%d: %[^:]: %d", &replyStatus, replyString, &replyValue);
|
||||||
home = (replyValue == '1') ? 1:0;
|
homed = (replyValue == '1') ? 1:0;
|
||||||
setIntegerParam(pC_->motorStatusAtHome_, home);
|
setIntegerParam(pC_->motorStatusHomed_, homed);
|
||||||
|
|
||||||
// Read the drive power on status
|
// Read the drive power on status
|
||||||
sprintf(pC_->outString_, "GPS");
|
sprintf(pC_->outString_, "GPS");
|
||||||
|
Reference in New Issue
Block a user