ESP32-Console

This commit is contained in:
2025-01-17 20:08:27 -05:00
parent ab93ad0341
commit f8c1a49a13

View File

@@ -101,10 +101,10 @@ static int exec_gpio_reset_cmd(int argc, char **argv) {
// Display brief summary of passed arguments. // Display brief summary of passed arguments.
ESP_LOGI("gpio-reset", "pin to reset: %i", ESP_LOGI("gpio-reset", "pin to reset: %i",
gpio_set_args.gpio->ival[0]); gpio_set_args.gpio->ival[0]);
// Set the bit mask for the pin number that was passed if (strcmp(gpio_set_args.mode->sval[0], "reset") == 0) {}
pin_config.pin_bit_mask = 1ULL << gpio_set_args.gpio->ival[0]; }
// Since we are setting the pin level, set the pin mode to OUTPUT return 0;
if (strcmp(gpio_set_args.mode->sval[0], "out") == 0) { }
} }
static void register_gpio_reset(void) { static void register_gpio_reset(void) {