From cc52b36f24967d4b8a171b20ca8e8f8c5d8bf4d0 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:28:18 +0300 Subject: [PATCH] fix missing arg end --- main/cmd_can.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/cmd_can.c b/main/cmd_can.c index ea35091..d7428a6 100644 --- a/main/cmd_can.c +++ b/main/cmd_can.c @@ -408,6 +408,8 @@ static void register_canfilter(void) { canfilter_args.mask_arg = arg_str1("m", "mask", "", "Acceptance mask (as in esp-idf docs), uint32_t in hex form, 8 symbols."); canfilter_args.code_arg = arg_str1("c", "code", "", "Acceptance code (as in esp-idf docs), uint32_t in hex form, 8 symbols."); canfilter_args.dual_arg = arg_lit0("d", NULL, "Use Dual Filter Mode."); + canfilter_args.end = arg_end(4); + const esp_console_cmd_t cmd = { .command = "canfilter", @@ -496,6 +498,8 @@ invalid_args: static void register_cansmartfilter(void) { cansmart_args.filters = arg_strn(NULL, NULL, " ...", 1, CONFIG_CAN_MAX_SMARTFILTERS_NUM, "Filters, in hex format. Each one contains mask and code in format code#mask. Both mask and code are uint32_t numbers in hex format. Example: 0000FF00#0000FFFF"); + cansmart_args.end = arg_end(2); + const esp_console_cmd_t cmd = { .command = "cansmartfilter", .help = "Setup smart mixed filters (hardware + software). Num of filters can be up to the value in config. Supportd only ID filtering of extended frames, standart frames aren't supported for now.",