Skip to content

Commit 31f424b

Browse files
committed
fix grbl example mistake
1 parent 73c09f1 commit 31f424b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Modules/GRBL13.2/GrblControl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ void GRBL::Init(uint32_t x_step,uint32_t y_step,uint32_t z_step,uint32_t acc)
1818
sprintf(code,"$0=%d",x_step);
1919
Gcode(code);
2020
}
21-
if(x_step){
21+
if(y_step){
2222
char code[256];
2323
sprintf(code,"$1=%d",y_step);
2424
Gcode(code);
2525
}
26-
if(x_step){
26+
if(z_step){
2727
char code[256];
2828
sprintf(code,"$2=%d",z_step);
2929
Gcode(code);

0 commit comments

Comments
 (0)