Index: firmware/App/Controllers/SyringePump.c =================================================================== diff -u -ra3741a7adf533bbc6683d9c4f3efbcfa9e989ba7 -r39c791d03f363ce2c684597080fc8c2f5515976f --- firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision a3741a7adf533bbc6683d9c4f3efbcfa9e989ba7) +++ firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision 39c791d03f363ce2c684597080fc8c2f5515976f) @@ -934,6 +934,21 @@ /*********************************************************************//** * @brief + * The isSyringePumpRunning function determines whether the syringe pump + * is currently running an operation. + * @details Inputs: syringePumpState + * @details Outputs: none + * @return TRUE if syringe pump operation is currently running, FALSE if not. + *************************************************************************/ +BOOL isSyringePumpRunning( void ) +{ + BOOL result = ( syringePumpState > SYRINGE_PUMP_OFF_STATE ? TRUE : FALSE ); + + return result; +} + +/*********************************************************************//** + * @brief * The execSyringePumpMonitor function executes the syringe pump monitor. * @details Inputs: FPGA syringe pump readings * @details Outputs: Alarm(s) may be triggered