From 3fe537f0462f8a0641978b42db4a7112de1cf07b Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Fri, 17 Jan 2025 18:16:00 -0500 Subject: [PATCH] ESP32-Console --- ESP32-Console/main/cmd_gpio_set.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ESP32-Console/main/cmd_gpio_set.h b/ESP32-Console/main/cmd_gpio_set.h index e71f96c2f..502c603c5 100644 --- a/ESP32-Console/main/cmd_gpio_set.h +++ b/ESP32-Console/main/cmd_gpio_set.h @@ -57,7 +57,7 @@ static int exec_gpio_set_cmd (int argc, char **argv) { // Function registering the 'gpio-set' command with its arguments. static void register_gpio_set_cmd (void) { - gpio_set_args.gpio = arg_int0("p", "gpio", "", "Specifies GPIO to be used"); + gpio_set_args.gpio = arg_int1("p", "gpio", "", "Specifies GPIO to be used"); gpio_set_args.mode = arg_str0("m", "mode", "", "Sets the mode of GPIO."); gpio_set_args.level = arg_int0("l", "level", "<1|0>", "Sets the logical level of GPIO."); gpio_set_args.pwm = arg_int0("f", "pwm", "", "Set PWM for GPIO.");