Fix boot freeze when trying to init PSRAM on Pico D4 (#6434)

* Fix boot freeze when trying to init PSRAM on Pico D4

* Don't deconfigure GPIO16/17 in Pico D4
This commit is contained in:
s-hadinger
2022-03-23 12:10:21 +01:00
committed by GitHub
parent 0b10c8b79e
commit 8fe0efe8c0

View File

@ -67,8 +67,10 @@ bool psramInit(){
spiramFailed = true; spiramFailed = true;
log_w("PSRAM init failed!"); log_w("PSRAM init failed!");
#if CONFIG_IDF_TARGET_ESP32 #if CONFIG_IDF_TARGET_ESP32
if (pkg_ver != EFUSE_RD_CHIP_VER_PKG_ESP32PICOD4) {
pinMatrixOutDetach(16, false, false); pinMatrixOutDetach(16, false, false);
pinMatrixOutDetach(17, false, false); pinMatrixOutDetach(17, false, false);
}
#endif #endif
return false; return false;
} }