Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -rbf484bf7b9c8a964582061328d8cbfb773927c38 -r354c1b3acab99a22f0451988bcb415bbe36e1f59 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision bf484bf7b9c8a964582061328d8cbfb773927c38) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 354c1b3acab99a22f0451988bcb415bbe36e1f59) @@ -8,7 +8,7 @@ * @file SystemCommMessages.c * * @author (last) Dara Navaei -* @date (last) 27-Aug-2024 +* @date (last) 12-Sep-2024 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -3448,18 +3448,14 @@ // Create a message record blankMessage( &msg ); msg.hdr.msgID = MSG_ID_HD_USAGE_DATA; - msg.hdr.payloadLen = sizeof( HD_USAGE_INFO_RECORD_T ); + msg.hdr.payloadLen = sizeof( F32 ) + sizeof( F32 ) + sizeof( U32 ); // Fill message payload memcpy( payloadPtr, &usageRecord.txTimeTotalHrs, sizeof( F32 ) ); payloadPtr += sizeof( F32 ); memcpy( payloadPtr, &usageRecord.txTimeSinceLastSrvcHrs, sizeof( F32 ) ); payloadPtr += sizeof( F32 ); memcpy( payloadPtr, &usageRecord.txLastStartTimeEpoch, sizeof( U32 ) ); - payloadPtr += sizeof( U32 ); - memcpy( payloadPtr, &usageRecord.lastResetTimeEpoch, sizeof( U32 ) ); - payloadPtr += sizeof( U32 ); - memcpy( payloadPtr, 0, sizeof( U16 ) ); // The UI has exceptionally been set to get the CRC as well. A 0 is sent to satisfy the CRC length. // Serialize the message (w/ sync, CRC, and appropriate CAN padding) and add serialized message data to appropriate comm buffer serializeMessage( msg, COMM_BUFFER_OUT_CAN_HD_2_UI, ACK_REQUIRED );