Skip to content

Commit af8bd22

Browse files
authored
improve hardware check sensitivity (#2652)
1 parent f7c8db3 commit af8bd22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/modules/common/hardware_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def valid_voltage(voltage) -> bool:
4242
(valid_voltage(voltages[0]) and valid_voltage(voltages[1]) and voltages[2] == 0) or
4343
(valid_voltage(voltages[0]) and valid_voltage(voltages[1]) and valid_voltage((voltages[2])))):
4444
return METER_BROKEN_VOLTAGES.format(voltages)
45-
if ((sum(counter_state.currents) < 0.5 and counter_state.power > 100) or
46-
(sum(counter_state.currents) > 0.5 and counter_state.power < 100)):
45+
if ((sum(counter_state.currents) < 0.5 and counter_state.power > 230) or
46+
(sum(counter_state.currents) > 1 and counter_state.power < 100)):
4747
return METER_IMPLAUSIBLE_VALUE.format(counter_state.powers, counter_state.currents, counter_state.voltages)
4848
return None
4949

0 commit comments

Comments
 (0)