1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-05 21:02:20 +01:00

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

View File

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