mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Fix ESP8266 ADC (#2376)
This commit is contained in:
		| @@ -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 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user