File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
components/esp_driver_gpio/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ static gpio_context_t gpio_context = {
7575
7676esp_err_t gpio_pullup_en (gpio_num_t gpio_num )
7777{
78- GPIO_CHECK (GPIO_IS_VALID_OUTPUT_GPIO (gpio_num ), "GPIO number error" , ESP_ERR_INVALID_ARG );
78+ GPIO_CHECK (GPIO_IS_VALID_OUTPUT_GPIO (gpio_num ), "GPIO number error (input-only pad has no internal PU) " , ESP_ERR_INVALID_ARG );
7979
8080 if (!rtc_gpio_is_valid_gpio (gpio_num ) || SOC_GPIO_SUPPORT_RTC_INDEPENDENT ) {
8181 portENTER_CRITICAL (& gpio_context .gpio_spinlock );
@@ -113,7 +113,7 @@ esp_err_t gpio_pullup_dis(gpio_num_t gpio_num)
113113
114114esp_err_t gpio_pulldown_en (gpio_num_t gpio_num )
115115{
116- GPIO_CHECK (GPIO_IS_VALID_OUTPUT_GPIO (gpio_num ), "GPIO number error" , ESP_ERR_INVALID_ARG );
116+ GPIO_CHECK (GPIO_IS_VALID_OUTPUT_GPIO (gpio_num ), "GPIO number error (input-only pad has no internal PD) " , ESP_ERR_INVALID_ARG );
117117
118118 if (!rtc_gpio_is_valid_gpio (gpio_num ) || SOC_GPIO_SUPPORT_RTC_INDEPENDENT ) {
119119 portENTER_CRITICAL (& gpio_context .gpio_spinlock );
You can’t perform that action at this time.
0 commit comments