ESP32 restore GPIO16/17 if no PSRAM was found

This commit is contained in:
Stephan Hadinger 2021-10-11 19:36:39 +02:00
parent 9b78500387
commit d527b9042e
2 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
- Berry add module ``import persist``
- Support for BL0942 energy monitor (#13259)
- Support for HM330X SeedStudio Grove Particule sensor (#13250)
- ESP32 restore GPIO16/17 if no PSRAM was found
### Breaking Changed
- ESP32 LVGL updated to v8.0.2

View File

@ -222,6 +222,13 @@ void setup(void) {
#endif
#endif
#ifdef CONFIG_IDF_TARGET_ESP32
// restore GPIO16/17 if no PSRAM is found
if (!FoundPSRAM()) {
gpio_reset_pin(GPIO_NUM_16);
gpio_reset_pin(GPIO_NUM_17);
}
#endif
RtcPreInit();
SettingsInit();