mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 07:56:15 +00:00
ESP32-Console
This commit is contained in:
@@ -45,7 +45,7 @@ static int exec_gpio_set_cmd (int argc, char **argv) {
|
|||||||
// Set the bit mask for the pin number that was passed
|
// Set the bit mask for the pin number that was passed
|
||||||
pin_config.pin_bit_mask = 1ULL << gpio_set_args.gpio->ival[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
|
// Since we are setting the pin level, set the pin mode to OUTPUT
|
||||||
if (strcmp(gpio_set_args.mode->sval, "out") == 0) {
|
if (strcmp(gpio_set_args.mode->sval, "out") == 1) {
|
||||||
pin_config.mode = GPIO_MODE_OUTPUT;
|
pin_config.mode = GPIO_MODE_OUTPUT;
|
||||||
// Submit pin configuration
|
// Submit pin configuration
|
||||||
gpio_config(&pin_config);
|
gpio_config(&pin_config);
|
||||||
|
Reference in New Issue
Block a user