From d7a210bf818c9c433d7306eb6151e7d3504a8059 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 24 Jul 2022 15:30:19 +0200 Subject: [PATCH] Increase dummy energy monitor max values Increase dummy energy monitor max values (#16059) --- tasmota/tasmota_xnrg_energy/xnrg_30_dummy.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasmota/tasmota_xnrg_energy/xnrg_30_dummy.ino b/tasmota/tasmota_xnrg_energy/xnrg_30_dummy.ino index c01062c26..065c909af 100644 --- a/tasmota/tasmota_xnrg_energy/xnrg_30_dummy.ino +++ b/tasmota/tasmota_xnrg_energy/xnrg_30_dummy.ino @@ -83,28 +83,28 @@ bool NrgDummyCommand(void) { } else if (CMND_POWERSET == Energy.command_code) { if (XdrvMailbox.data_len) { - if ((abs_value > 100) && (abs_value < 200000)) { // Between 1.00 and 2000.00 W + if ((abs_value >= 100) && (abs_value <= 16000000)) { // Between 1.00 and 160000.00 W Settings->energy_power_calibration = abs_value; } } } else if (CMND_VOLTAGESET == Energy.command_code) { if (XdrvMailbox.data_len) { - if ((abs_value > 10000) && (abs_value < 26000)) { // Between 100.00 and 260.00 V + if ((abs_value >= 10000) && (abs_value <= 40000)) { // Between 100.00 and 400.00 V Settings->energy_voltage_calibration = abs_value; } } } else if (CMND_CURRENTSET == Energy.command_code) { if (XdrvMailbox.data_len) { - if ((abs_value > 1000) && (abs_value < 1000000)) { // Between 10.00 mA and 10.00000 A + if ((abs_value >= 1000) && (abs_value <= 40000000)) { // Between 10.00 mA and 400.00000 A Settings->energy_current_calibration = abs_value; } } } else if (CMND_FREQUENCYSET == Energy.command_code) { if (XdrvMailbox.data_len) { - if ((abs_value > 4500) && (abs_value < 6500)) { // Between 45.00 and 65.00 Hz + if ((abs_value >= 4500) && (abs_value <= 6500)) { // Between 45.00 and 65.00 Hz Settings->energy_frequency_calibration = abs_value; } }