diff --git a/ssa/alarm/alarmist.py b/ssa/alarm/alarmist.py index 10459ea..e204dae 100644 --- a/ssa/alarm/alarmist.py +++ b/ssa/alarm/alarmist.py @@ -150,9 +150,10 @@ class Alarmist: ) paddle_on = torque > float(self.config["thresholds"]["on_torque"]) # Check three last points to see if paddle is moving - paddle_moving = ( - torque > float(self.config["thresholds"]["moving_torque"]) - ) or (torque != previous_torque or previous_torque != previouser_torque) + paddle_moving = paddle_on and ( + (torque > float(self.config["thresholds"]["moving_torque"])) + or (torque != previous_torque or previous_torque != previouser_torque) + ) # check if coolant is flowing (coolant_flow_rate, _) = self.soars_state.get( "coolant_flow_rate", (0.0, None)