Skip to content

Commit

Permalink
Fix safeboot compilation (arendst#22367)
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst authored and josef109 committed Nov 7, 2024
1 parent ee982f9 commit 01bebde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasmota/tasmota.ino
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ void setup(void) {
DisableBrownout(); // Workaround possible weak LDO resulting in brownout detection during Wifi connection
#endif // DISABLE_ESP32_BROWNOUT

#ifndef FIRMWARE_SAFEBOOT
// restore GPIO5/18 or 16/17 if no PSRAM is found which may be used by Ethernet among others
if (!FoundPSRAM()) {
// test if the CPU is not pico
Expand All @@ -420,6 +421,7 @@ void setup(void) {
esp_gpio_revoke(BIT64(CONFIG_D0WD_PSRAM_CS_IO) | BIT64(CONFIG_D0WD_PSRAM_CLK_IO));
}
}
#endif // FIRMWARE_SAFEBOOT
#endif // CONFIG_IDF_TARGET_ESP32
#endif // ESP32

Expand Down

0 comments on commit 01bebde

Please sign in to comment.