ESP32-Console

This commit is contained in:
2025-01-17 18:02:52 -05:00
parent 10303a97de
commit 1d05dcddb1

View File

@@ -32,7 +32,7 @@ static int exec_gpio_set_cmd (int argc, char **argv) {
/* /*
Set the levelof specified GPIO HIGH or LOW Set the levelof specified GPIO HIGH or LOW
*/ */
// Check that the minimal required arguments were passed, i.e. pin #, mode, and logic level. // Check that the minimal required arguments were passed, i.e. pin #, mode, and logic level.
if (gpio_set_args.gpio->count > 0 && gpio_set_args.level->count > 0) { if (gpio_set_args.gpio->count > 0 && gpio_set_args.level->count > 0) {
ESP_LOGI("GPIO", "pin: %i, mode: %s, level: %i", gpio_set_args.gpio->ival[0], gpio_set_args.mode->sval[0], gpio_set_args.level->ival[0]); ESP_LOGI("GPIO", "pin: %i, mode: %s, level: %i", gpio_set_args.gpio->ival[0], gpio_set_args.mode->sval[0], gpio_set_args.level->ival[0]);
pin_config.pin_bit_mask = 1ULL << gpio_set_args.gpio->ival[0]; pin_config.pin_bit_mask = 1ULL << gpio_set_args.gpio->ival[0];