From 1913a240aab3a2ad72d477aa6fff840afdcad7a3 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 26 May 2022 15:20:55 +0200 Subject: implement mode history --- robot/errcatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'robot/errcatch.c') diff --git a/robot/errcatch.c b/robot/errcatch.c index e44acfd..8df90b8 100644 --- a/robot/errcatch.c +++ b/robot/errcatch.c @@ -51,7 +51,7 @@ void w2_errcatch_handle_error(w2_s_error *error) { uint8_t severity = error->code & W2_E_TYPE_MASK; // trigger emergency mode for critical errors - if ((severity ^ W2_E_TYPE_CRIT) == 0) w2_modes_switch(W2_M_HALT); + if ((severity ^ W2_E_TYPE_CRIT) == 0) w2_modes_call(W2_M_HALT); // TODO: handle more error types switch (error->code) { -- cgit v1.2.3