mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-04 21:55:40 -05:00
Fixed bug, it was sending E query to read motor current status, should be W query
This commit is contained in:
@@ -296,7 +296,7 @@ asynStatus MCB4BAxis::poll(bool *moving)
|
|||||||
setIntegerParam(pC_->motorStatusAtHome_, limit);
|
setIntegerParam(pC_->motorStatusAtHome_, limit);
|
||||||
|
|
||||||
// Read the drive power on status
|
// Read the drive power on status
|
||||||
sprintf(pC_->outString_, "#%02dE", axisNo_);
|
sprintf(pC_->outString_, "#%02dW", axisNo_);
|
||||||
comStatus = pC_->writeReadController();
|
comStatus = pC_->writeReadController();
|
||||||
if (comStatus) goto skip;
|
if (comStatus) goto skip;
|
||||||
driveOn = (pC_->inString_[5] == '1') ? 1:0;
|
driveOn = (pC_->inString_[5] == '1') ? 1:0;
|
||||||
|
Reference in New Issue
Block a user