Skip to content

Commit

Permalink
fix probe parser
Browse files Browse the repository at this point in the history
this should fix #63, please confirm
  • Loading branch information
martin2250 committed Mar 26, 2019
1 parent 7d19d07 commit 086fbd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenCNCPilot/Communication/Machine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ private void ParseStatus(string line)
StatusReceived.Invoke(line);
}

private static Regex ProbeEx = new Regex(@"\[PRB:(?'Pos'[-0-9\.]*,[-0-9\.]*,[-0-9\.]*):(?'Success'0|1)\]", RegexOptions.Compiled);
private static Regex ProbeEx = new Regex(@"\[PRB:(?'Pos'\-?[0-9\.]*(?:,\-?[0-9\.]*)+):(?'Success'0|1)\]", RegexOptions.Compiled);

/// <summary>
/// Parses a recevied probe report
Expand Down

0 comments on commit 086fbd6

Please sign in to comment.