Merge pull request #13335 from s-hadinger/esp32_nopsram

ESP32 restore GPIO16/17 if no PSRAM was found
This commit is contained in:
Theo Arends 2021-10-11 19:57:35 +02:00 committed by GitHub
commit 6914dba807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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`` - Berry add module ``import persist``
- Support for BL0942 energy monitor (#13259) - Support for BL0942 energy monitor (#13259)
- Support for HM330X SeedStudio Grove Particule sensor (#13250) - Support for HM330X SeedStudio Grove Particule sensor (#13250)
- ESP32 restore GPIO16/17 if no PSRAM was found
### Breaking Changed ### Breaking Changed
- ESP32 LVGL updated to v8.0.2 - ESP32 LVGL updated to v8.0.2

View File

@ -222,6 +222,13 @@ void setup(void) {
#endif #endif
#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(); RtcPreInit();
SettingsInit(); SettingsInit();