Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/MaslowCNC/Firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbourSmith committed Jul 11, 2018
2 parents beae569 + 6c941eb commit 19737ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cnc_ctrl_v1/GCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ byte executeBcodeLine(const String& gcodeLine){
double begin = millis();

int i = 0;
sys.state = (sys.state | STATE_POS_ERR_IGNORE);
while (millis() - begin < ms){
if (gcodeLine.indexOf('L') != -1){
leftAxis.motorGearboxEncoder.motor.directWrite(speed);
Expand All @@ -263,6 +264,7 @@ byte executeBcodeLine(const String& gcodeLine){
execSystemRealtime();
if (sys.stop){return STATUS_OK;}
}
sys.state = (sys.state | (!STATE_POS_ERR_IGNORE));
return STATUS_OK;
}

Expand Down

0 comments on commit 19737ff

Please sign in to comment.