diff --git a/ports/esp32/machine_encoder.c b/ports/esp32/machine_encoder.c index c14a9b8beda57..d5569af9a61ee 100644 --- a/ports/esp32/machine_encoder.c +++ b/ports/esp32/machine_encoder.c @@ -53,7 +53,8 @@ See also #if MICROPY_PY_MACHINE_PCNT -#include "driver/pcnt.h" +// #include "driver/pcnt.h" +#include "driver/pulse_cnt.h" #include "soc/pcnt_struct.h" #include "esp_err.h"