Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Compiling deprecated warning on 12.1 of ESPHome #2438

Open
BluThunder2k opened this issue Dec 20, 2024 · 1 comment
Open

Bug Compiling deprecated warning on 12.1 of ESPHome #2438

BluThunder2k opened this issue Dec 20, 2024 · 1 comment
Labels
Bug Identifies an issue where the system is not functioning as expected. Compiling For issues specifically related to compilation errors.
Milestone

Comments

@BluThunder2k
Copy link

TFT Version

4.3.12

Firmware Version

4.3.12

Blueprint Version

4.3.12

Panel Model

US

What is the bug?

When compiling under new ESPHome 12.1 - you get the following warnings - compiles fine - but these deprecation warnings:

Compiling .pioenvs/nsdisplaydesk/src/esphome/components/api/api_frame_helper.cpp.o
In file included from src/esphome/components/adc/adc_sensor.h:9,
                 from src/esphome/components/adc/adc_sensor_esp32.cpp:3:
/data/cache/platformio/packages/framework-espidf/components/esp_adc/deprecated/include/esp_adc_cal.h:17:2: warning: #warning "legacy adc calibration driver is deprecated, please migrate to use esp_adc/adc_cali.h and esp_adc/adc_cali_scheme.h" [-Wcpp]
   17 | #warning "legacy adc calibration driver is deprecated, please migrate to use esp_adc/adc_cali.h and esp_adc/adc_cali_scheme.h"
      |  ^~~~~~~
In file included from src/esphome/components/adc/adc_sensor.h:10:
/data/cache/platformio/packages/framework-espidf/components/driver/deprecated/driver/adc.h:19:2: warning: #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" [-Wcpp]
   19 | #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively"
      |  ^~~~~~~
In file included from src/esphome/components/adc/adc_sensor.h:9,
                 from src/esphome/components/adc/adc_sensor_common.cpp:1:
/data/cache/platformio/packages/framework-espidf/components/esp_adc/deprecated/include/esp_adc_cal.h:17:2: warning: #warning "legacy adc calibration driver is deprecated, please migrate to use esp_adc/adc_cali.h and esp_adc/adc_cali_scheme.h" [-Wcpp]
   17 | #warning "legacy adc calibration driver is deprecated, please migrate to use esp_adc/adc_cali.h and esp_adc/adc_cali_scheme.h"
      |  ^~~~~~~
In file included from src/esphome/components/adc/adc_sensor.h:10:
/data/cache/platformio/packages/framework-espidf/components/driver/deprecated/driver/adc.h:19:2: warning: #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" [-Wcpp]
   19 | #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively"
      |  ^~~~~~~
Compiling .pioenvs/nsdisplaydesk/src/esphome/components/api/api_pb2.cpp.o

Steps to Reproduce

Any unit compile with ESPHome 12.1.

Your Panel's YAML

No response

ESPHome Logs

No response

Home Assistant Logs

No response

@BluThunder2k BluThunder2k added the Bug Identifies an issue where the system is not functioning as expected. label Dec 20, 2024
@edwardtfn edwardtfn added this to the v4.4.0 milestone Dec 20, 2024
@edwardtfn edwardtfn added the Compiling For issues specifically related to compilation errors. label Dec 20, 2024
@edwardtfn
Copy link
Collaborator

This is an issue coming from ESPHome ADC component, which is using deprecated libraries.
I've already created esphome/esphome#7942 to solve this there and as soon they merge and release you won't see this message anymore. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Identifies an issue where the system is not functioning as expected. Compiling For issues specifically related to compilation errors.
Projects
None yet
Development

No branches or pull requests

2 participants