add/install probe_errors_enabled in mc_probe_cycle
This commit is contained in:
@ -289,7 +289,7 @@ void mc_homing_cycle()
|
||||
uint8_t auto_start_state = sys.auto_start; // Store run state
|
||||
|
||||
// After syncing, check if probe is already triggered. If so, halt and issue alarm.
|
||||
if (probe_get_state(mode)) {
|
||||
if (probe_get_state(mode) && probe_errors_enabled(mode)) {
|
||||
bit_true_atomic(sys.execute, EXEC_CRIT_EVENT);
|
||||
protocol_execute_runtime();
|
||||
}
|
||||
@ -313,7 +313,9 @@ void mc_homing_cycle()
|
||||
} while ((sys.state != STATE_IDLE) && (sys.state != STATE_QUEUED));
|
||||
|
||||
// Probing motion complete. If the probe has not been triggered, error out.
|
||||
if (sys.probe_state & PROBE_ACTIVE) { bit_true_atomic(sys.execute, EXEC_CRIT_EVENT); }
|
||||
if (sys.probe_state & PROBE_ACTIVE && probe_errors_enabled(mode)) {
|
||||
bit_true_atomic(sys.execute, EXEC_CRIT_EVENT);
|
||||
}
|
||||
protocol_execute_runtime(); // Check and execute run-time commands
|
||||
if (sys.abort) { return; } // Check for system abort
|
||||
|
||||
|
Reference in New Issue
Block a user