Skip to content

Commit

Permalink
Fix heightmap probe regex. This will fix heightmap zeroes on machnies…
Browse files Browse the repository at this point in the history
… that have >3 axis.

See topic Denvi/Candle#589
  • Loading branch information
PSIAlt committed Jan 3, 2025
1 parent 2ad3200 commit 66beffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frmmain_processresponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ void frmMain::ProcessGRBL1_1()
{
// Get probe Z coordinate
// "[PRB:0.000,0.000,0.000:0];ok"
QRegExp rx(".*PRB:([^,]*),([^,]*),([^]^:]*)");
QRegExp rx(".*PRB:([^,]*),([^,]*),([^,:\\]]*)");
double z = qQNaN();
if(rx.indexIn(response) != -1)
{
Expand Down Expand Up @@ -1405,7 +1405,7 @@ void frmMain::ProcessGRBL_ETH(QString data)
{
// Get probe Z coordinate
// "[PRB:0.000,0.000,0.000:0];ok"
QRegExp rx(".*PRB:([^,]*),([^,]*),([^]^:]*)");
QRegExp rx(".*PRB:([^,]*),([^,]*),([^,:\\]]*)");
double z = qQNaN();
if(rx.indexIn(response) != -1)
{
Expand Down

0 comments on commit 66beffd

Please sign in to comment.