Index: firmware/App/Controllers/ConcentratePumps.c =================================================================== diff -u -r1747702a2e89998cd3fa1348907eeb623e9c16c8 -r6d3a38303c448c14f9f64781dd39cbf2ac0fceec --- firmware/App/Controllers/ConcentratePumps.c (.../ConcentratePumps.c) (revision 1747702a2e89998cd3fa1348907eeb623e9c16c8) +++ firmware/App/Controllers/ConcentratePumps.c (.../ConcentratePumps.c) (revision 6d3a38303c448c14f9f64781dd39cbf2ac0fceec) @@ -386,6 +386,31 @@ /*********************************************************************//** * @brief + * The getConcentratePumpTargetFlowMLPM function returns the concentrate pump's + * flow rate in mL/min. + * @details Inputs: concentratePumps + * @details Outputs: none + * @param pumpId concentrate pump id to get its target flow + * @return the current concentrate pump flow rate (in mL/min). + *************************************************************************/ +F32 getConcentratePumpTargetFlowMLPM( CONCENTRATE_PUMPS_T pumpId ) +{ + F32 flow = 0.0; + + if ( pumpId < NUM_OF_CONCENTRATE_PUMPS ) + { + flow = concentratePumps[ pumpId ].pumpTargetSpeed; + } + else + { + SET_ALARM_WITH_2_U32_DATA( ALARM_ID_DG_SOFTWARE_FAULT, SW_FAULT_ID_CONCENTRATE_PUMP_INVALID_PUMP_ID, pumpId ); + } + + return flow; +} + +/*********************************************************************//** + * @brief * The getMeasuredPumpSpeed function gets the measured concentrate pump flow rate. * @details Inputs: measuredPumpSpeed * @details Outputs: none