Skip to content

Commit

Permalink
Merge pull request #448 from MaslowCNC/make-error-detect-in-either-di…
Browse files Browse the repository at this point in the history
…rection

Move bracket in alarm code
  • Loading branch information
MaslowCommunityGardenRobot authored May 13, 2018
2 parents 2ad674f + b8e1549 commit f908312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cnc_ctrl_v1/Report.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void returnError(){
Serial.println(F("]"));
if (!sys.stop) {
if (!(sys.state & STATE_POS_ERR_IGNORE)) {
if ((abs(leftAxis.error()) >= sysSettings.positionErrorLimit) || abs((rightAxis.error()) >= sysSettings.positionErrorLimit)) {
if ((abs(leftAxis.error()) >= sysSettings.positionErrorLimit) || (abs(rightAxis.error()) >= sysSettings.positionErrorLimit)) {
reportAlarmMessage(ALARM_POSITION_LIMIT_ERROR);
}
}
Expand Down

0 comments on commit f908312

Please sign in to comment.