fix(unit-test): config wakeup gpio pin internal pullup to avoid input floating

This commit is contained in:
Li Shuai
2026-09-09 11:30:44 +08:00
parent 27506a49bc
commit bfc5ade8d2

View File

@@ -263,7 +263,7 @@ static int process_gpio_wakeup(int argc, char **argv)
.pin_bit_mask = BIT64(io_wakeup_num),
.mode = GPIO_MODE_INPUT,
.pull_down_en = GPIO_PULLDOWN_DISABLE,
.pull_up_en = GPIO_PULLUP_DISABLE,
.pull_up_en = GPIO_PULLUP_ENABLE,
.intr_type = (io_wakeup_type == 0) ? GPIO_INTR_LOW_LEVEL : GPIO_INTR_HIGH_LEVEL
};
ESP_ERROR_CHECK(gpio_config(&config));