From 134308115d3353b15229f946cb8ac8dcbffa0c70 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sat, 11 Jan 2025 10:17:44 -0500 Subject: [PATCH] ESP32-Console --- ESP32-Console/main/commands.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ESP32-Console/main/commands.h b/ESP32-Console/main/commands.h index fa246be77..4340ed5e8 100644 --- a/ESP32-Console/main/commands.h +++ b/ESP32-Console/main/commands.h @@ -31,7 +31,7 @@ static int do_info_cmd (int argc, char **argv) { static void register_info (void) { info_args.detail = arg_str1(NULL, NULL, "", "Chip temperature"); info_args.end = arg_end(2); - + const esp_console_cmd_t info_cmd = { .command = "info", .help = "System Information", @@ -39,6 +39,8 @@ static void register_info (void) { .func = &do_info_cmd, .argtable = &info_args }; + + ESP_ERROR_CHECK(esp_console_cmd_register(&info_cmd)); } void register_commands (void) {