ESP32-Console

This commit is contained in:
2025-01-15 21:26:30 -05:00
parent 0092172d7d
commit fc58226202
7 changed files with 1388 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ static int exec_gpio_get_cmd(int argc, char **argv) {
else {
if (gpio_get_args.gpio != 0) {
int pin = gpio_get_args.gpio->ival[0];
printf("GPIO: %d \n", pin);
printf("GPIO: %d \n", *pin);
ESP_LOGI("gpio-get", "GPIO # %i", gpio_get_args.gpio->ival[0]);
ESP_LOGI("gpio-get", "GPIO # %i", gpio_get_args.gpio->ival[1]);
gpio_dump_io_configuration(stdout, 1ULL << 4);//gpio_get_args.gpio->ival[0]);