probably fixed a bug that would crash grbl after ~20 commands
This commit is contained in:
parent
a7b596caac
commit
f5cf3195a8
@ -204,7 +204,8 @@ void planner_reverse_pass() {
|
|||||||
block[1]= block[0];
|
block[1]= block[0];
|
||||||
block[0] = &block_buffer[block_index];
|
block[0] = &block_buffer[block_index];
|
||||||
planner_reverse_pass_kernel(block[0], block[1], block[2]);
|
planner_reverse_pass_kernel(block[0], block[1], block[2]);
|
||||||
block_index = (block_index-1) % BLOCK_BUFFER_SIZE;
|
block_index--;
|
||||||
|
if(block_index < 0) {block_index = BLOCK_BUFFER_SIZE-1;}
|
||||||
}
|
}
|
||||||
planner_reverse_pass_kernel(NULL, block[0], block[1]);
|
planner_reverse_pass_kernel(NULL, block[0], block[1]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user