Index: firmware/App/Controllers/BloodLeak.c =================================================================== diff -u -r71b08e3335b0c111cc57a562089e8ac0b206d258 -r2a6ac80309cb52922f856b3eb4ff2c876b44c0d6 --- firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision 71b08e3335b0c111cc57a562089e8ac0b206d258) +++ firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision 2a6ac80309cb52922f856b3eb4ff2c876b44c0d6) @@ -128,7 +128,7 @@ bloodLeakSetPointSeqLength = 0; // Set the blood leak set pint sequence to 0 to be initialized - memset( bloodLeakSetPointSequence, 0x0, BLOOD_LEAK_SET_POINT_SEQ_MAX_LENGTH); + memset( bloodLeakSetPointSequence, 0x0, BLOOD_LEAK_SET_POINT_SEQ_MAX_LENGTH ); } /*********************************************************************//** @@ -279,7 +279,7 @@ if( bloodLeakUARTCmdIndex < bloodLeakSetPointSeqLength ) { // The active high index is the length - 2 they are the last two elements - 1 since the - // length starts from 0 + // index starts from 0 U32 activeHighIndex = bloodLeakSetPointSeqLength - 2 - 1; // Check if the current index towards the end of the buffer which are 1 and 0 if( activeHighIndex == bloodLeakUARTCmdIndex )