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