Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -rc06a32218bad65414ccda5d41293e5349e46d241 -r18981bf79f6c19a1822f003084e80547c21cdb62 --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision c06a32218bad65414ccda5d41293e5349e46d241) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 18981bf79f6c19a1822f003084e80547c21cdb62) @@ -383,6 +383,7 @@ isBloodPumpOn = FALSE; bpControlTimerCounter = 0; setPeristalticPumpSetSpeed( bloodPumpSetSpeedRPM ); + setPeristalticPumpHardStop(); resetPIController( PI_CONTROLLER_ID_BLOOD_FLOW, 0.0F, 0.0F ); } @@ -1319,6 +1320,27 @@ /*********************************************************************//** * @brief + * The testHardStopBloodPump function hard stops the blood pump. + * @details \b Inputs: none + * @details \b Outputs: none + * @param message BP home command message from Dialin. + * @return TRUE if command successful, FALSE if not + *************************************************************************/ +BOOL testHardStopBloodPump( MESSAGE_T *message ) +{ + BOOL result = FALSE; + + if ( 0 == message->hdr.payloadLen ) + { + result = TRUE; + signalBloodPumpHardStop(); + } + + return result; +} + +/*********************************************************************//** + * @brief * The testBPFlowAlphaYInterceptOverride function overrides the Alpha Y * intercept of the blood flow estimation equation. * @details \b Inputs: none