refactor power module #590
sendFuseOnCommandand also specify a
ReturnValue_treturn type. The const specifier can make the API cumbersome and awkward to use.
Concerning repercusions if thread-safety is/might be an issue:
In my opinion, this should be mentioned in the code documentations and implemented by the user, not be enforced with
const, which can make the API difficult and/or awkward to use.
- Add a
DummyPowerSwitchermodule, which can be useful for test setups when no PCDU is available.
- Add new definitions file, add new typedef for switches
PowerSwitcherto optionally check current state when calling
turnOff. No need to command the switches if they are already in the correct state
- Apply auto-formatter
- Add power switch mock object for unit tests
No due date set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?