Index: firmware/App/Controllers/BalancingChamber.c =================================================================== diff -u -rc1557cc79c8f0b0c358963c99d83015bd3b37e42 -r67d2fdfc9ec326b98b5a0ac2dbfcee283c8791af --- firmware/App/Controllers/BalancingChamber.c (.../BalancingChamber.c) (revision c1557cc79c8f0b0c358963c99d83015bd3b37e42) +++ firmware/App/Controllers/BalancingChamber.c (.../BalancingChamber.c) (revision 67d2fdfc9ec326b98b5a0ac2dbfcee283c8791af) @@ -748,6 +748,29 @@ /*********************************************************************//** * @brief + * The valveControlForBCSpentSideOnlyOpenState function opens the spent side + * balancing chamber valves and closes the fresh side valves. + * @details \b Inputs: none + * @details \b Outputs: valve states + * @return none. + *************************************************************************/ +void valveControlForBCSpentSideOnlyOpenState( void ) +{ + // Open spent side valves D23,D24,D25,D26 + setValveState( D23_VALV, VALVE_STATE_OPEN ); + setValveState( D25_VALV, VALVE_STATE_OPEN ); + setValveState( D24_VALV, VALVE_STATE_OPEN ); + setValveState( D26_VALV, VALVE_STATE_OPEN ); + + // Close fresh balancing chamber valves D19,D20,D21,D22 + setValveState( D19_VALV, VALVE_STATE_CLOSED ); + setValveState( D20_VALV, VALVE_STATE_CLOSED ); + setValveState( D21_VALV, VALVE_STATE_CLOSED ); + setValveState( D22_VALV, VALVE_STATE_CLOSED ); +} + +/*********************************************************************//** + * @brief * The valveControlForBCState1FreshSideClose function closes only the fresh-side * balancing chamber valves opened during state 1 fill. * @details \b Inputs: none