From cbf3d97f5c8421a30c359d3fa329e198cfc45214 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:52:06 +0300 Subject: [PATCH] remove some comments and redundant type --- README.md | 1 + main/can.c | 1 - main/can.h | 8 -------- main/cmd_can.c | 1 - 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/README.md b/README.md index 1a8ecd6..31a51ee 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,4 @@ TODO: clear history and clear screen commands code refactoring updating prompt conflicts with some hints and with some arguments with cansend + test dumb mode diff --git a/main/can.c b/main/can.c index 67ba8a5..c3579aa 100644 --- a/main/can.c +++ b/main/can.c @@ -85,7 +85,6 @@ bool matches_filters(twai_message_t *msg) { return false; } -// TODO: add software filtering void can_task(void* arg) { static const TickType_t can_task_timeout = pdMS_TO_TICKS(200); uint32_t alerts = 0; diff --git a/main/can.h b/main/can.h index 8e3a323..3dd20b2 100644 --- a/main/can.h +++ b/main/can.h @@ -8,14 +8,6 @@ #include #include -typedef struct { - char status[30]; - int tec; - int rec; - int color; - bool extd; -} can_prompt_t; - typedef enum { CAN_NOT_INSTALLED = 0, CAN_STOPPED = 1, diff --git a/main/cmd_can.c b/main/cmd_can.c index 5cccadb..5a0c74f 100644 --- a/main/cmd_can.c +++ b/main/cmd_can.c @@ -149,7 +149,6 @@ static int canup(int argc, char **argv) { esp_err_t res; static twai_timing_config_t t_config; twai_general_config_t gen_cfg = default_g_config; - // TODO: add CAN filtering twai_filter_config_t f_config; int nerrors = arg_parse(argc, argv, (void **) &canup_args); if (nerrors != 0) {