Skip to content

Commit

Permalink
gate out for ESP_IDF_VERSION_MAJOR 4
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Oct 15, 2024
1 parent 480bab0 commit 1d5152b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wolfcrypt/src/port/Espressif/esp_sdk_wifi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <wolfssl/wolfcrypt/settings.h>

#if defined(WOLFSSL_ESPIDF) /* Entire file is only for Espressif EDP-IDF */
#if defined(USE_WOLFSSL_ESP_SDK_WIFI)
#if defined(USE_WOLFSSL_ESP_SDK_WIFI) && ESP_IDF_VERSION_MAJOR > 4

/* Espressif */
#include "sdkconfig.h" /* programmatically generated from sdkconfig */
Expand Down Expand Up @@ -59,8 +59,8 @@ esp_err_t esp_sdk_wifi_lib_init(void)
#if defined(CONFIG_IDF_TARGET_ESP8266)
#elif ESP_IDF_VERSION_MAJOR >= 5 && defined(FOUND_PROTOCOL_EXAMPLES_DIR)
/* example path set in cmake file */
#elif ESP_IDF_VERSION_MAJOR >= 4
#include "protocol_examples_common.h"
#elif ESP_IDF_VERSION_MAJOR > 4
/* #include "protocol_examples_common.h" */
#else
const static int CONNECTED_BIT = BIT0;
static EventGroupHandle_t wifi_event_group;
Expand Down

0 comments on commit 1d5152b

Please sign in to comment.