Index: firmware/App/Controllers/BloodLeak.c =================================================================== diff -u -rcf72c9fc8fd10c06bec1981cb26c1e653b7e8d92 -r14d1cffaeeebd5729f5c05c21b9eb1ac414b4750 --- firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision cf72c9fc8fd10c06bec1981cb26c1e653b7e8d92) +++ firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision 14d1cffaeeebd5729f5c05c21b9eb1ac414b4750) @@ -234,7 +234,7 @@ static BLOOD_LEAK_STATUS_T getFPGABloodDetectProcessedStatus( void ); static BOOL isDialysateLineInBypass( void ); static void processBloodLeakIntensityData( void ); -static void signalEmbModeCmdRespConsumed( U08 cmd ); +static void resetEmbModeCmdRespConsumedFlag( U08 cmd ); /*********************************************************************//** * @brief @@ -1689,6 +1689,10 @@ bloodLeakEmbModeInfoCmdEnqLastTimeStamp = getMSTimerCount(); bloodLeakEmbModeInfoCmdCounter = INC_WRAP( bloodLeakEmbModeInfoCmdCounter, 0, BLOOD_LEAK_EMB_MODE_NUM_OF_INFO_CMDS - 1 ); break; + + default: + // Do nothing as the other commands are ignored + break; } } } @@ -1761,19 +1765,19 @@ bloodLeakZeroingStatus.intensityMovingAverage = (F32)bloodLeakZeroingStatus.intensityRunningSum / (F32)BLD_ZERO_MVG_AVG_NUM_OF_SAMPLES; bloodLeakZeroingStatus.rawIntensityNextIndex = INC_WRAP( index, 0, BLD_ZERO_MVG_AVG_NUM_OF_SAMPLES - 1 ); - signalEmbModeCmdRespConsumed( I_EMB_MODE_CMD ); + resetEmbModeCmdRespConsumedFlag( I_EMB_MODE_CMD ); } } /*********************************************************************//** * @brief - * The signalEmbModeCmdRespConsumed function sets the cmd response ready flag + * The resetEmbModeCmdRespConsumedFlag function sets the cmd response ready flag * to false its flag that fresh data is ready. * @details Inputs: none * @details Outputs: bloodLeakEmbModeCmd * @param cmd the command to signal its data has been consumed * @return none *************************************************************************/ -static void signalEmbModeCmdRespConsumed( U08 cmd ) +static void resetEmbModeCmdRespConsumedFlag( U08 cmd ) { bloodLeakEmbModeCmd[ cmd ].isCmdRespRdy = FALSE; }