Commit ac59d802 authored by MagoKimbra's avatar MagoKimbra

Fix G28

parent 075af738
...@@ -1356,8 +1356,8 @@ static void clean_up_after_endstop_move() { ...@@ -1356,8 +1356,8 @@ static void clean_up_after_endstop_move() {
#endif #endif
feedrate = saved_feedrate; feedrate = saved_feedrate;
feedrate_multiplier = saved_feedrate_multiplier; feedrate_multiplier = saved_feedrate_multiplier;
endstops_hit_on_purpose(); // clear endstop hit flags
refresh_cmd_timeout(); refresh_cmd_timeout();
endstops_hit_on_purpose(); // clear endstop hit flags
} }
#if MECH(CARTESIAN) || MECH(COREXY) || MECH(COREXZ) || MECH(SCARA) #if MECH(CARTESIAN) || MECH(COREXY) || MECH(COREXZ) || MECH(SCARA)
...@@ -3162,7 +3162,7 @@ inline void gcode_G28() { ...@@ -3162,7 +3162,7 @@ inline void gcode_G28() {
print_xyz("> HOMEAXIS(Z) > current_position", current_position); print_xyz("> HOMEAXIS(Z) > current_position", current_position);
} }
#elif DISABLED(Z_SAFE_HOMING) && ENABLED(Z_RAISE_BEFORE_HOMING) && Z_RAISE_BEFORE_HOMING > 0 #elif DISABLED(Z_SAFE_HOMING) && ENABLED(AUTO_BED_LEVELING_FEATURE) && Z_RAISE_BEFORE_HOMING > 0
// Raise Z before homing any other axes // Raise Z before homing any other axes
destination[Z_AXIS] = -Z_RAISE_BEFORE_HOMING * home_dir(Z_AXIS); // Set destination away from bed destination[Z_AXIS] = -Z_RAISE_BEFORE_HOMING * home_dir(Z_AXIS); // Set destination away from bed
...@@ -3439,12 +3439,12 @@ inline void gcode_G28() { ...@@ -3439,12 +3439,12 @@ inline void gcode_G28() {
} }
else { else {
LCD_MESSAGEPGM(MSG_ZPROBE_OUT); LCD_MESSAGEPGM(MSG_ZPROBE_OUT);
ECHO_LM(ER, MSG_ZPROBE_OUT); ECHO_LM(DB, MSG_ZPROBE_OUT);
} }
} }
else { else {
LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN); LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN);
ECHO_LM(ER, MSG_POSITION_UNKNOWN); ECHO_LM(DB, MSG_POSITION_UNKNOWN);
} }
} }
if (debugLevel & DEBUG_INFO) ECHO_LM(DB, "<<< Z_SAFE_HOMING"); if (debugLevel & DEBUG_INFO) ECHO_LM(DB, "<<< Z_SAFE_HOMING");
...@@ -3520,6 +3520,8 @@ inline void gcode_G28() { ...@@ -3520,6 +3520,8 @@ inline void gcode_G28() {
feedrate = oldfeedrate; feedrate = oldfeedrate;
#endif #endif
} }
if (debugLevel & DEBUG_INFO) ECHO_LM(DB, "<<< gcode_G28");
} }
#if ENABLED(AUTO_BED_LEVELING_FEATURE) #if ENABLED(AUTO_BED_LEVELING_FEATURE)
......
...@@ -767,6 +767,8 @@ ISR(TIMER1_COMPA_vect) { ...@@ -767,6 +767,8 @@ ISR(TIMER1_COMPA_vect) {
step_loops = step_loops_nominal; step_loops = step_loops_nominal;
} }
OCR1A = (OCR1A < (TCNT1 + 16)) ? (TCNT1 + 16) : OCR1A;
// If current block is finished, reset pointer // If current block is finished, reset pointer
if (step_events_completed >= current_block->step_event_count) { if (step_events_completed >= current_block->step_event_count) {
current_block = NULL; current_block = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment