Index: firmware/App/Drivers/BloodLeakDriver.c =================================================================== diff -u -r32e2bfb5cc2e778a6ccb7e93a118644a4f34068a -r1a1023b5f23921282632c7972c922f351b878abc --- firmware/App/Drivers/BloodLeakDriver.c (.../BloodLeakDriver.c) (revision 32e2bfb5cc2e778a6ccb7e93a118644a4f34068a) +++ firmware/App/Drivers/BloodLeakDriver.c (.../BloodLeakDriver.c) (revision 1a1023b5f23921282632c7972c922f351b878abc) @@ -146,7 +146,6 @@ *************************************************************************/ void initBloodLeakDriver( void ) { - U32 i = 0; // Initialize the embedded mode specifications initEmbModeSpecs(); @@ -167,23 +166,11 @@ memset( bloodLeakEmbModeCmdQ, 0x0, BLOOD_LEAK_EMB_MODE_CMD_Q_MAX_SIZE ); // Initialize the blood leak embedded mode command sequence - for ( i = 0; i < BLOOD_LEAK_EMB_MODE_CMD_SEQ_LENGTH; i++ ) - { - memset( bloodLeakEmbModeCmdSeq[ i ], 0x0, sizeof( bloodLeakEmbModeCmdSeq[ 0 ] ) ); - } + memset( bloodLeakEmbModeCmdSeq, 0x0, BLOOD_LEAK_EMB_MODE_CMD_SEQ_LENGTH * NUM_OF_BLOOD_LEAK_EMB_MODE_COL_INDEX ); // Set the blood leak set point sequence to 0 to be initialized - for ( i = 0; i < BLOOD_LEAK_SET_POINT_SEQ_MAX_LENGTH; i++ ) - { - memset( bloodLeakSetPointSequence[ i ], 0x0, sizeof( bloodLeakSetPointSequence[ 0 ] ) ); - } + memset( bloodLeakSetPointSequence, 0x0, BLOOD_LEAK_SET_POINT_SEQ_MAX_LENGTH * NUM_OF_BLOOD_LEAK_EMB_MODE_COL_INDEX ); - // Initialize the blood leak embedded mode command sequence - memset( bloodLeakEmbModeCmdSeq, 0x0, BLOOD_LEAK_EMB_MODE_CMD_SEQ_LENGTH ); - - // Set the blood leak set pint sequence to 0 to be initialized - memset( bloodLeakSetPointSequence, 0x0, BLOOD_LEAK_SET_POINT_SEQ_MAX_LENGTH ); - // Enqueue the commands to set the embedded mode and request the set point of the blood leak sensor enqueueEmbModeCmd( CS_EMB_MODE_CMD ); enqueueEmbModeCmd( D_EMB_MODE_CMD ); Index: firmware/App/Drivers/BloodLeakDriver.h =================================================================== diff -u -r32e2bfb5cc2e778a6ccb7e93a118644a4f34068a -r1a1023b5f23921282632c7972c922f351b878abc --- firmware/App/Drivers/BloodLeakDriver.h (.../BloodLeakDriver.h) (revision 32e2bfb5cc2e778a6ccb7e93a118644a4f34068a) +++ firmware/App/Drivers/BloodLeakDriver.h (.../BloodLeakDriver.h) (revision 1a1023b5f23921282632c7972c922f351b878abc) @@ -48,7 +48,6 @@ U32 driftInRangeStatus; ///< Blood leak detector drift in range status. U32 driftUpperRangeStatus; ///< Blood leak detector drift upper range status. } BLOOD_LEAK_DATA_T; -#pragma pack(pop) // ********** shared definitions (used by monitor + driver) ********** @@ -107,7 +106,6 @@ NUM_OF_EMB_CMDS, } BLOOD_LEAK_EMB_MODE_CMD_T; -#pragma pack(push,1) /// Embedded mode command specifications. typedef struct {