Skip to content

Commit 0a5fe73

Browse files
committed
Ignore commands when kill switch is active
1 parent 029bd88 commit 0a5fe73

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

conf_general.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define FW_VERSION_MAJOR 5
2525
#define FW_VERSION_MINOR 03
2626
// Set to 0 for building a release and iterate during beta test builds
27-
#define FW_TEST_VERSION_NUMBER 40
27+
#define FW_TEST_VERSION_NUMBER 41
2828

2929
#include "datatypes.h"
3030

timeout.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ static THD_FUNCTION(timeout_thread, arg) {
218218
mc_interface_select_motor_thread(2);
219219
mc_interface_set_brake_current(timeout_brake_current);
220220

221-
if (!kill_sw) {
221+
if (kill_sw) {
222+
mc_interface_ignore_input_both(20);
223+
} else {
222224
has_timeout = true;
223225
}
224226
} else {

0 commit comments

Comments
 (0)