diff --git a/coolant_control.c b/coolant_control.c index 3c1a681..21fc106 100644 --- a/coolant_control.c +++ b/coolant_control.c @@ -47,7 +47,7 @@ void coolant_run(uint8_t mode) { if (sys.state == STATE_CHECK_MODE) { return; } - protocol_auto_cycle_start(); + protocol_auto_cycle_start(); //temp fix for M8 lockup protocol_buffer_synchronize(); // Ensure coolant turns on when specified in program. if (mode == COOLANT_FLOOD_ENABLE) { COOLANT_FLOOD_PORT |= (1 << COOLANT_FLOOD_BIT); diff --git a/gcode.c b/gcode.c index cdef3ad..65f9957 100644 --- a/gcode.c +++ b/gcode.c @@ -62,7 +62,7 @@ void gc_sync_position() { uint8_t i; for (i=0; i -#include - -#include "kbhit.h" - - diff --git a/sim/serial.c b/sim/serial.c index 293e0f8..a4418e5 100644 --- a/sim/serial.c +++ b/sim/serial.c @@ -26,8 +26,6 @@ #include "simulator.h" #include -#include "kbhit.h" - //prototypes for overridden functions uint8_t orig_serial_read(); diff --git a/spindle_control.c b/spindle_control.c index f5d99cc..ee4dcb8 100644 --- a/spindle_control.c +++ b/spindle_control.c @@ -60,7 +60,7 @@ void spindle_run(uint8_t direction, float rpm) if (sys.state == STATE_CHECK_MODE) { return; } // Empty planner buffer to ensure spindle is set when programmed. - protocol_auto_cycle_start(); + protocol_auto_cycle_start(); //temp fix for M3 lockup protocol_buffer_synchronize(); // Halt or set spindle direction and rpm. diff --git a/stepper.c b/stepper.c index 09d9d28..cf71d1a 100644 --- a/stepper.c +++ b/stepper.c @@ -76,9 +76,6 @@ typedef struct { #else uint8_t prescaler; // Without AMASS, a prescaler is required to adjust for slow timing. #endif - #ifdef AUTO_REPORT_MOVE_DONE - uint8_t block_end; //true for last segment of a block - #endif } segment_t; static segment_t segment_buffer[SEGMENT_BUFFER_SIZE]; @@ -284,7 +281,7 @@ void st_go_idle() // with probing and homing cycles that require true real-time positions. ISR(TIMER1_COMPA_vect) { - // TIMING_ENABLE_PORT ^= 1<block_end; - #endif st.exec_segment = NULL; if ( ++segment_buffer_tail == SEGMENT_BUFFER_SIZE) { segment_buffer_tail = 0; } } @@ -799,14 +793,8 @@ void st_prep_buffer() // Normal operation. Block incomplete. Distance remaining in block to be executed. pl_block->millimeters = mm_remaining; prep.steps_remaining = steps_remaining; - #ifdef AUTO_REPORT_MOVE_DONE - prep_segment->block_end = 0; - #endif } else { // End of planner block or forced-termination. No more distance to be executed. - #ifdef AUTO_REPORT_MOVE_DONE - prep_segment->block_end = EXEC_STATUS_REPORT; // force move-done report - #endif if (mm_remaining > 0.0) { // At end of forced-termination. // Reset prep parameters for resuming and then bail. // NOTE: Currently only feed holds qualify for this scenario. May change with overrides.