From 179ecbbe8a2a4982bf28ff247e73e3fbbb761f45 Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Mon, 26 Nov 2018 21:38:44 -0800 Subject: [PATCH] Disable outputs and jog on estop. #170 --- src/avr/src/estop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/avr/src/estop.c b/src/avr/src/estop.c index 20559fa..67fcecb 100644 --- a/src/avr/src/estop.c +++ b/src/avr/src/estop.c @@ -34,6 +34,7 @@ #include "config.h" #include "state.h" #include "outputs.h" +#include "jog.h" #include "exec.h" #include @@ -89,9 +90,11 @@ void estop_trigger(stat_t reason) { // Set fault signal outputs_set_active(FAULT_PIN, true); - // Hard stop the motors and the spindle + // Hard stop peripherals st_shutdown(); spindle_estop(); + jog_stop(); + outputs_stop(); // Set machine state state_estop(); -- 2.27.0