From 8e7c7c3af6b3f1435771a823ab536b7a8eb58b13 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:30:51 +0200 Subject: [PATCH] Final fix ethernet malfunction on idf5.3 --- tasmota/tasmota.ino | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index fe7fa2c09..e4f930685 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -413,10 +413,11 @@ void setup(void) { if (!FoundPSRAM()) { // test if the CPU is not pico uint32_t pkg_version = bootloader_common_get_chip_ver_pkg(); - if (pkg_version <= 3) { // D0WD, S0WD, D2WD - esp_gpio_revoke(0xFFFFFFFFFFFFFFFF); // Revoke all GPIO's some of them set by init PSRAM in IDF - gpio_reset_pin(GPIO_NUM_16); - gpio_reset_pin(GPIO_NUM_17); + if (pkg_version <= 3) { // D0WD, S0WD, D2WD + gpio_reset_pin(GPIO_NUM_16); // D0WD_PSRAM_CS_IO + gpio_reset_pin(GPIO_NUM_17); // D0WD_PSRAM_CLK_IO + // IDF5.3 fix esp_gpio_reserve used in init PSRAM + esp_gpio_revoke(BIT64(GPIO_NUM_16) | BIT64(GPIO_NUM_17)); } } #endif // CONFIG_IDF_TARGET_ESP32