Skip to content

Commit

Permalink
Less restrictive unlock-detection for GRBL. Fixes t-oster#73
Browse files Browse the repository at this point in the history
  • Loading branch information
t-oster committed Jan 5, 2017
1 parent d76f322 commit 904b520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/t_oster/liblasercut/drivers/Grbl.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected String waitForIdentificationLine(ProgressListener pl) throws IOExcepti
if (error != null) return error;

// check if board is locked and if so home/unlock
if (in.ready() && waitForLine().equals("['$H'|'$X' to unlock]")) {
if (in.ready() && waitForLine().contains("'$H'|'$X' to unlock]")) {
if (getAutoHome() == true) {
pl.taskChanged(this, "Homing");
sendLineWithoutWait("$H");
Expand Down

0 comments on commit 904b520

Please sign in to comment.