mirror of
https://github.com/esphome/esphome.git
synced 2025-11-16 06:45:48 +00:00
Fix ADC VCC
Fixes https://github.com/esphome/issues/issues/289 Was a linker problem, the macro needs to be defined in global C++ scope (no namespace, not in extern "C" block)
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#include "esphome/components/adc/adc_sensor.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
#ifdef USE_ADC_SENSOR_VCC
|
||||
ADC_MODE(ADC_VCC)
|
||||
#endif
|
||||
|
||||
namespace esphome {
|
||||
namespace adc {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user