mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-30 09:39:49 +02:00
ABC Bresenham counter init fix
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// Grbl versioning system
|
||||
|
||||
const char* const GRBL_VERSION = "1.3a";
|
||||
const char* const GRBL_VERSION_BUILD = "20201121";
|
||||
const char* const GRBL_VERSION_BUILD = "20201122";
|
||||
|
||||
//#include <sdkconfig.h>
|
||||
#include <Arduino.h>
|
||||
|
@@ -245,11 +245,9 @@ static void stepper_pulse_func() {
|
||||
st.exec_block_index = st.exec_segment->st_block_index;
|
||||
st.exec_block = &st_block_buffer[st.exec_block_index];
|
||||
// Initialize Bresenham line and distance counters
|
||||
// XXX the original code only inits X, Y, Z here, instead of n_axis. Is that correct?
|
||||
for (int axis = 0; axis < 3; axis++) {
|
||||
for (int axis = 0; axis < n_axis; axis++) {
|
||||
st.counter[axis] = (st.exec_block->step_event_count >> 1);
|
||||
}
|
||||
// TODO ABC
|
||||
}
|
||||
st.dir_outbits = st.exec_block->direction_bits;
|
||||
// Adjust Bresenham axis increment counters according to AMASS level.
|
||||
|
Reference in New Issue
Block a user