From d80d34ac9d3fc2bfe7c58a3ed8cc47c909799aa2 Mon Sep 17 00:00:00 2001 From: LKuemmel Date: Mon, 11 Aug 2025 14:50:11 +0200 Subject: [PATCH] improve hardware check sensitivity --- packages/modules/common/hardware_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/modules/common/hardware_check.py b/packages/modules/common/hardware_check.py index 2dd8931818..c12188bf52 100644 --- a/packages/modules/common/hardware_check.py +++ b/packages/modules/common/hardware_check.py @@ -42,8 +42,8 @@ def valid_voltage(voltage) -> bool: (valid_voltage(voltages[0]) and valid_voltage(voltages[1]) and voltages[2] == 0) or (valid_voltage(voltages[0]) and valid_voltage(voltages[1]) and valid_voltage((voltages[2])))): return METER_BROKEN_VOLTAGES.format(voltages) - if ((sum(counter_state.currents) < 0.5 and counter_state.power > 100) or - (sum(counter_state.currents) > 0.5 and counter_state.power < 100)): + if ((sum(counter_state.currents) < 0.5 and counter_state.power > 230) or + (sum(counter_state.currents) > 1 and counter_state.power < 100)): return METER_IMPLAUSIBLE_VALUE.format(counter_state.powers, counter_state.currents, counter_state.voltages) return None