Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
SingleSp::set_power_state
idempotent
Presently, the `SingleSp::set_power_state` method can fail if the system is already in the requested power state, which is a bit of a bummer. This is because the Hubris sequencer task returns an `IllegalTransition` error when the requested and current power states are the same. This commit changes it to first check the power state, and not ask the SP to do anything else if it's already in the requested state. Closes #270
- Loading branch information