mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-25 10:38:07 +00:00
Remove arduino version checks
This commit is contained in:
parent
0645c44006
commit
6ab5ef20a7
@ -419,12 +419,8 @@ static void WiFiEvent(WiFiEvent_t event)
|
|||||||
break;
|
break;
|
||||||
case ARDUINO_EVENT_ETH_GOT_IP6:
|
case ARDUINO_EVENT_ETH_GOT_IP6:
|
||||||
#ifdef USE_WS5500
|
#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 Local IP6 address: %s", ETH.linkLocalIPv6().toString().c_str());
|
||||||
LOG_INFO("Obtained GlobalIP6 address: %s", ETH.globalIPv6().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
|
#endif
|
||||||
break;
|
break;
|
||||||
case ARDUINO_EVENT_SC_SCAN_DONE:
|
case ARDUINO_EVENT_SC_SCAN_DONE:
|
||||||
|
@ -475,11 +475,7 @@ esp_sleep_wakeup_cause_t doLightSleep(uint64_t sleepMsec) // FIXME, use a more r
|
|||||||
*/
|
*/
|
||||||
void enableModemSleep()
|
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
|
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
|
#if CONFIG_IDF_TARGET_ESP32S3
|
||||||
esp32_config.max_freq_mhz = CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ;
|
esp32_config.max_freq_mhz = CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ;
|
||||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
Loading…
Reference in New Issue
Block a user