From 6176bd3045da6a7996780f64739f8324220acfda Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sat, 11 Jan 2025 10:12:13 -0500 Subject: [PATCH] ESP32-Console --- ESP32-Console/main/commands.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ESP32-Console/main/commands.h b/ESP32-Console/main/commands.h index 0d6df9b75..16ca87f72 100644 --- a/ESP32-Console/main/commands.h +++ b/ESP32-Console/main/commands.h @@ -9,13 +9,19 @@ #include "esp_log.h" static struct { - struct arg_int *detail; + struct arg_str *detail; //struct arg_int *chip_temp; //struct arg_int *voltage; + struct arg_end *end; } info_args; static int do_info_cmd (int argc, char **argv) { ESP_LOGW("CLI", "This is the Information Command."); + int nerrors = arg_parse(argc, argv, (void**) &info_args); + if (nerrors != 0) { + arg_print_errors(stderr, info_args.end, argv[0]); + return 1; + } if (info_args.chip_temp->count) { ESP_LOGW("CLI", "Information: Chip Temperature %d", 25);