Skip to content

Commit

Permalink
write pump and fault on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabramz committed Sep 9, 2024
1 parent 8fcfb82 commit f773204
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Core/Src/state_machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ void vStateMachineDirector(void *pv_params)
dti_t *mc = args->mc;
free(args);

/* Write to GPIO expander to set initial state */
write_pump(pdu, false);
write_fault(pdu, false);

for (;;) {
osThreadFlagsWait(STATE_TRANSITION_FLAG, osFlagsWaitAny,
osWaitForever);
Expand Down

0 comments on commit f773204

Please sign in to comment.