From e794b50f2cfff7e91924357024819a60fc7bfd03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=BB=D0=B0=20=D0=93=D0=BE=D1=80?= =?UTF-8?q?=D0=BD=D1=83=D1=88=D0=BA=D0=BE?= Date: Wed, 29 Nov 2023 15:43:02 +0300 Subject: [PATCH] fix software filtering staying on --- main/cmd_can.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/cmd_can.c b/main/cmd_can.c index 38e0232..5cccadb 100644 --- a/main/cmd_can.c +++ b/main/cmd_can.c @@ -160,6 +160,8 @@ static int canup(int argc, char **argv) { f_config = my_filters; printf("Using %s filters.\n", adv_filters.enabled ? "smart" : "basic hw"); } else { + adv_filters.enabled = false; + adv_filters.sw_filtering = false; f_config = (twai_filter_config_t) TWAI_FILTER_CONFIG_ACCEPT_ALL(); printf("Using accept all filters.\n"); }