From 1c1f6c638f3a39acbcc53c16076385ee64a52dc9 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 8 Feb 2023 10:50:34 +0100 Subject: [PATCH] Add commands PowerCal, VoltageCal and CurrentCall Add commands PowerCal, VoltageCal and CurrentCall to CSE7766/HLW8032 energy driver --- tasmota/tasmota_xnrg_energy/xnrg_02_cse7766.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasmota/tasmota_xnrg_energy/xnrg_02_cse7766.ino b/tasmota/tasmota_xnrg_energy/xnrg_02_cse7766.ino index 023480298..9ca4c5ce8 100644 --- a/tasmota/tasmota_xnrg_energy/xnrg_02_cse7766.ino +++ b/tasmota/tasmota_xnrg_energy/xnrg_02_cse7766.ino @@ -255,7 +255,10 @@ void CseDrvInit(void) { bool CseCommand(void) { bool serviced = true; - if (CMND_POWERSET == Energy->command_code) { + if ((CMND_POWERCAL == Energy->command_code) || (CMND_VOLTAGECAL == Energy->command_code) || (CMND_CURRENTCAL == Energy->command_code)) { + // Service in xdrv_03_energy.ino + } + else if (CMND_POWERSET == Energy->command_code) { if (XdrvMailbox.data_len && Cse.power_cycle) { XdrvMailbox.payload = (unsigned long)(CharToFloat(XdrvMailbox.data) * Cse.power_cycle) / CSE_PREF; }