Skip to content

Commit

Permalink
disable DEAD OPD nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed May 26, 2024
1 parent 1ae2390 commit 5c298ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oresat_c3/services/node_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ def on_loop(self):
if info.opd_always_on and info.status == NodeState.OFF:
self.enable(name)

if info.status == NodeState.ERROR:
if info.status == NodeState.DEAD and self.opd[name].is_enabled:
self.opd[name].disable() # make sure this is disabled
elif info.status == NodeState.ERROR:
logger.error(f"resetting node {name}, try {info.opd_resets + 1}")
self.opd[name].reset(1)
self._data[name].last_enable = monotonic()
Expand Down

0 comments on commit 5c298ac

Please sign in to comment.