mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 02:45:41 +00:00
fix gpio reset (rtc gpios not supported with esp32c6)
This commit is contained in:
parent
0f74118ef4
commit
c1c2731a19
@ -476,11 +476,13 @@ void gpioReset()
|
|||||||
|
|
||||||
// deinitialize RTC GPIOs and holds
|
// deinitialize RTC GPIOs and holds
|
||||||
for (uint8_t i = 0; i <= GPIO_NUM_MAX; i++) {
|
for (uint8_t i = 0; i <= GPIO_NUM_MAX; i++) {
|
||||||
|
#ifdef SOC_PM_SUPPORT_EXT_WAKEUP
|
||||||
if (rtc_gpio_is_valid_gpio((gpio_num_t)i)) {
|
if (rtc_gpio_is_valid_gpio((gpio_num_t)i)) {
|
||||||
rtc_gpio_hold_dis((gpio_num_t)i);
|
rtc_gpio_hold_dis((gpio_num_t)i);
|
||||||
rtc_gpio_deinit((gpio_num_t)i);
|
rtc_gpio_deinit((gpio_num_t)i);
|
||||||
|
}
|
||||||
} else if (GPIO_IS_VALID_OUTPUT_GPIO((gpio_num_t)i)) {
|
#endif
|
||||||
|
if (GPIO_IS_VALID_OUTPUT_GPIO((gpio_num_t)i)) {
|
||||||
gpio_hold_dis((gpio_num_t)i);
|
gpio_hold_dis((gpio_num_t)i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user