|
|
@ -1140,9 +1140,9 @@ void _sensorLoad() { |
|
|
|
#if HLW8012_SUPPORT
|
|
|
|
{ |
|
|
|
HLW8012Sensor * sensor = new HLW8012Sensor(); |
|
|
|
sensor->setSEL(HLW8012_SEL_PIN); |
|
|
|
sensor->setCF(HLW8012_CF_PIN); |
|
|
|
sensor->setCF1(HLW8012_CF1_PIN); |
|
|
|
sensor->setSEL(getSetting("snsHlw8012SelGPIO", HLW8012_SEL_PIN)); |
|
|
|
sensor->setCF(getSetting("snsHlw8012CfGPIO", HLW8012_CF_PIN)); |
|
|
|
sensor->setCF1(getSetting("snsHlw8012Cf1GPIO", HLW8012_CF1_PIN)); |
|
|
|
sensor->setSELCurrent(HLW8012_SEL_CURRENT); |
|
|
|
_sensors.push_back(sensor); |
|
|
|
} |
|
|
|