fix software filtering staying on

This commit is contained in:
Данила Горнушко 2023-11-29 15:43:02 +03:00
parent 6bc8fbe979
commit e794b50f2c

View file

@ -160,6 +160,8 @@ static int canup(int argc, char **argv) {
f_config = my_filters; f_config = my_filters;
printf("Using %s filters.\n", adv_filters.enabled ? "smart" : "basic hw"); printf("Using %s filters.\n", adv_filters.enabled ? "smart" : "basic hw");
} else { } else {
adv_filters.enabled = false;
adv_filters.sw_filtering = false;
f_config = (twai_filter_config_t) TWAI_FILTER_CONFIG_ACCEPT_ALL(); f_config = (twai_filter_config_t) TWAI_FILTER_CONFIG_ACCEPT_ALL();
printf("Using accept all filters.\n"); printf("Using accept all filters.\n");
} }