Legacy pcnt driver is deprecated

Hi,

I’m getting this error when updating my ESPHome devices. (SparkFun ESP32Thing) They are working, I just want to know what i need to action… I do need a pulse counter working.

Compiling .pioenvs/esphome-web-50bf98/src/main.cpp.o
In file included from src/esphome/components/pulse_counter/pulse_counter_sensor.h:10,
                 from src/esphome/components/pulse_counter/automation.h:5,
                 from src/esphome.h:40,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-espidf/components/driver/deprecated/driver/pcnt.h:15:2: warning: #warning "legacy pcnt driver is deprecated, please migrate to use driver/pulse_cnt.h" [-Wcpp]
   15 | #warning "legacy pcnt driver is deprecated, please migrate to use driver/pulse_cnt.h"
      |  ^~~~~~~
Linking .pioenvs/esphome-web-50bf98/firmware.elf

It helps solve your problem if you include the yaml you used to get the error message and all the other details listed here:

esp32:
  board: esp32thing_plus
  framework:
    type: arduino

#edit

sensor:
  - platform: pulse_counter
  # 1Hz – 0.98 LPM
  # should around 27 litres a minute
    name: "tank litres per minute"
    pin:
      number: GPIO33
    filters:
      - lambda: return (x / 60.0) * 1.0204081632653;
    unit_of_measurement: "L/min"
1 Like

yes, i’m following that issue. currently everything is working fine.