Fix imports for rp2040 with no wifi (#3956)

This commit is contained in:
Jesse Hills 2022-10-28 08:12:12 +13:00 committed by GitHub
parent f8640cf2cd
commit e61a01f7bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,9 +21,12 @@
#include "esp_system.h" #include "esp_system.h"
#include <freertos/FreeRTOS.h> #include <freertos/FreeRTOS.h>
#include <freertos/portmacro.h> #include <freertos/portmacro.h>
#elif defined(USE_RP2040) && defined(USE_WIFI) #elif defined(USE_RP2040)
#if defined(USE_WIFI)
#include <WiFi.h> #include <WiFi.h>
#endif
#include <hardware/structs/rosc.h> #include <hardware/structs/rosc.h>
#include <hardware/sync.h>
#endif #endif
#ifdef USE_ESP32_IGNORE_EFUSE_MAC_CRC #ifdef USE_ESP32_IGNORE_EFUSE_MAC_CRC