Skip to content

Commit

Permalink
Merge pull request #534 from blurfl/fix-comment-handling
Browse files Browse the repository at this point in the history
remove characters within a comment
  • Loading branch information
MaslowCommunityGardenRobot authored Oct 8, 2019
2 parents 768524c + dc6c23f commit 400db40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cnc_ctrl_v1/GCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,9 @@ void sanitizeCommandString(String& cmdString){
cmdString.remove(pos, 1);
if (line_flags & LINE_FLAG_COMMENT_PARENTHESES) { line_flags &= ~(LINE_FLAG_COMMENT_PARENTHESES); }
}
else {
cmdString.remove(pos, 1);
}
}
else {
if (cmdString[pos] < ' ') {
Expand Down

0 comments on commit 400db40

Please sign in to comment.