diff --git a/src/mesh/wifi/WiFiAPClient.cpp b/src/mesh/wifi/WiFiAPClient.cpp index 2facfa9dc..6d04d12d8 100644 --- a/src/mesh/wifi/WiFiAPClient.cpp +++ b/src/mesh/wifi/WiFiAPClient.cpp @@ -419,12 +419,8 @@ static void WiFiEvent(WiFiEvent_t event) break; case ARDUINO_EVENT_ETH_GOT_IP6: #ifdef USE_WS5500 -#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0) LOG_INFO("Obtained Local IP6 address: %s", ETH.linkLocalIPv6().toString().c_str()); LOG_INFO("Obtained GlobalIP6 address: %s", ETH.globalIPv6().toString().c_str()); -#else - LOG_INFO("Obtained IP6 address: %s", ETH.localIPv6().toString().c_str()); -#endif #endif break; case ARDUINO_EVENT_SC_SCAN_DONE: diff --git a/src/sleep.cpp b/src/sleep.cpp index 713414798..43b3dd4ae 100644 --- a/src/sleep.cpp +++ b/src/sleep.cpp @@ -475,11 +475,7 @@ esp_sleep_wakeup_cause_t doLightSleep(uint64_t sleepMsec) // FIXME, use a more r */ void enableModemSleep() { -#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0) static esp_pm_config_t esp32_config; // filled with zeros because bss -#else - static esp_pm_config_esp32_t esp32_config; // filled with zeros because bss -#endif #if CONFIG_IDF_TARGET_ESP32S3 esp32_config.max_freq_mhz = CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ; #elif CONFIG_IDF_TARGET_ESP32S2