From 66857b56809912dc133f31c6812545ceee65d713 Mon Sep 17 00:00:00 2001 From: EmanuelFeru Date: Tue, 13 Oct 2020 08:58:42 +0200 Subject: [PATCH] Fixed symbol --- Src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/util.c b/Src/util.c index dba0146..c0f3520 100644 --- a/Src/util.c +++ b/Src/util.c @@ -863,7 +863,7 @@ void readCommand(void) { } #if defined(CRUISE_CONTROL_SUPPORT) && (defined(SUPPORT_BUTTONS) || defined(SUPPORT_BUTTONS_LEFT) || defined(SUPPORT_BUTTONS_RIGHT)) - if (button1 && ~rtP_Left.b_cruiseCtrlEna) { // Cruise control activated + if (button1 && !rtP_Left.b_cruiseCtrlEna) { // Cruise control activated rtP_Left.n_cruiseMotTgt = rtY_Left.n_mot; rtP_Right.n_cruiseMotTgt = rtY_Right.n_mot; rtP_Left.b_cruiseCtrlEna = 1;