Skip to content

Commit

Permalink
Merge pull request #371 from rickwargo/patch-1
Browse files Browse the repository at this point in the history
Remove noise from GRBL param response
  • Loading branch information
petervanderwalt authored Oct 1, 2024
2 parents 898cd96 + c23bea0 commit 73f6fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/js/grbl-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function grblSettings(data) {
grblconfig = data.split('\n')
for (i = 0; i < grblconfig.length; i++) {
var key = grblconfig[i].split('=')[0];
var param = grblconfig[i].split('=')[1]
var param = grblconfig[i].split(/[= ;(]/)[1]
grblParams[key] = param
}
// $('#grblconfig').show();
Expand Down Expand Up @@ -620,4 +620,4 @@ function setup_settings_table() {
displayProbeDirInvert()

console.log("Updated")
}
}

0 comments on commit 73f6fd3

Please sign in to comment.