Index: firmware/App/Controllers/DrainPump.c =================================================================== diff -u -r0ff3afb455342a5abde4bb3e6a99819c9ed05164 -r2e3b3b2034ee5afb52a8630568145c9705afff9f --- firmware/App/Controllers/DrainPump.c (.../DrainPump.c) (revision 0ff3afb455342a5abde4bb3e6a99819c9ed05164) +++ firmware/App/Controllers/DrainPump.c (.../DrainPump.c) (revision 2e3b3b2034ee5afb52a8630568145c9705afff9f) @@ -471,6 +471,18 @@ /*********************************************************************//** * @brief + * The isDrainPumpOn function determines whether the drain pump is on. + * @details Inputs: drainPumpDACSet + * @details Outputs: none + * @return TRUE if drain pump is on, FALSE if not. + *************************************************************************/ +BOOL isDrainPumpOn( void ) +{ + return ( drainPumpDACSet > 0 ? TRUE : FALSE ); +} + +/*********************************************************************//** + * @brief * The handleDrainPumpOffState function handles the drain pump off state of * the drain pump controller state machine. * @details Inputs: drainPumpControlModeSet, drainPumpDACSet, drainPumpDAC