Skip to content

Commit

Permalink
fix compiling with ESP-IDF 5.x, (#103)
Browse files Browse the repository at this point in the history
* fix compiling with ESP-IDF 5.x, see #101

* includes only with ESP_IDF_VERSION_MAJOR=5

* Changed compiler define
  • Loading branch information
tueddy authored Mar 5, 2024
1 parent 1fd7981 commit 5ecc91a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ESP32Encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
#include <soc/pcnt_struct.h>
#include "esp_log.h"
#include "esp_ipc.h"
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 3) )
#include <freertos/FreeRTOS.h>
#include <rom/gpio.h>
#endif

static const char* TAG_ENCODER = "ESP32Encoder";

Expand Down

0 comments on commit 5ecc91a

Please sign in to comment.