From cacc7584d321b884c6a22972982d9f97d93206c2 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Sun, 9 Feb 2020 04:54:33 +0300 Subject: [PATCH] hlw8012: gpio cfg (#2142) --- code/espurna/sensor.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/espurna/sensor.ino b/code/espurna/sensor.ino index 3fb5baf3..80ef59ec 100644 --- a/code/espurna/sensor.ino +++ b/code/espurna/sensor.ino @@ -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); }