Fix ESP8266 ADC (#2376)

This commit is contained in:
Paul Monigatti 2021-09-23 20:45:41 +12:00 committed by GitHub
parent 5ddba719c5
commit ea6a7a22ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,13 @@
#include "adc_sensor.h"
#include "esphome/core/log.h"
#ifdef USE_ESP8266
#ifdef USE_ADC_SENSOR_VCC
#include <Esp.h>
ADC_MODE(ADC_VCC)
#else
#include <Arduino.h>
#endif
#endif
namespace esphome {