Skip to content

Commit

Permalink
Fix compile error (Arduino 2.0.14) (#105)
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

* Make compile with include <Arduino.h>
  • Loading branch information
tueddy authored Apr 2, 2024
1 parent 94161c7 commit b47dfc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ESP32Encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

#include <ESP32Encoder.h>
#include <Arduino.h>
#include <soc/soc_caps.h>
#if SOC_PCNT_SUPPORTED
// Not all esp32 chips support the pcnt (notably the esp32c3 does not)
Expand Down

0 comments on commit b47dfc5

Please sign in to comment.