Skip to content

Commit

Permalink
use door_state in switch config instead of door_closed because it is …
Browse files Browse the repository at this point in the history
…configured to be 0 for closed and 1 for open.
  • Loading branch information
dboulware committed Dec 1, 2023
1 parent b0231d0 commit 3fcefb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scos_actions/actions/acquire_sea_data_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,8 @@ def capture_diagnostics(self, action_start_tic: float, cpu_speeds: list) -> None
self.add_temperature_and_humidity_sensors(all_switch_status, switch_diag)
self.add_power_sensors(all_switch_status, switch_diag)
self.add_power_states(all_switch_status, switch_diag)
if "door_closed" in all_switch_status:
switch_diag["door_closed"] = not bool(all_switch_status["door_closed"])
if "door_state" in all_switch_status:
switch_diag["door_closed"] = not bool(all_switch_status["door_state"])

#Read preselector sensors
ps_diag = preselector.get_status()
Expand Down

0 comments on commit 3fcefb3

Please sign in to comment.