Index: firmware/App/Controllers/SyringePump.c =================================================================== diff -u -recfe9ec722ad63e9db99cb3fd6c2843693d058a4 -rfc81a8aec8b013e2f8f6ee9022de0490d6428a4a --- firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision ecfe9ec722ad63e9db99cb3fd6c2843693d058a4) +++ firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision fc81a8aec8b013e2f8f6ee9022de0490d6428a4a) @@ -935,6 +935,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