Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r77738b42add276957539f0efb3f9a4092852c5ce -rf5b02f03b6695c0c76fd8a4d902a13114e1a8aca --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 77738b42add276957539f0efb3f9a4092852c5ce) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision f5b02f03b6695c0c76fd8a4d902a13114e1a8aca) @@ -360,9 +360,11 @@ * @details * Inputs : none * Outputs : DG operation mode msg constructed and queued + * @param mode : current operation mode of the DG. + * @param subMode : current sub-mode of the current operation mode of the DG. * @return TRUE if msg successfully queued for transmit, FALSE if not *************************************************************************/ -BOOL broadcastDGOperationMode( U32 mode ) +BOOL broadcastDGOperationMode( U32 mode, U32 subMode ) { BOOL result; MESSAGE_T msg; @@ -371,9 +373,11 @@ // create a message record blankMessage( &msg ); msg.hdr.msgID = MSG_ID_DG_OP_MODE; - msg.hdr.payloadLen = sizeof( U32 ); + msg.hdr.payloadLen = sizeof( U32 ) + sizeof( U32 ); memcpy( payloadPtr, &mode, sizeof( U32 ) ); + payloadPtr += sizeof( U32 ); + memcpy( payloadPtr, &subMode, sizeof( U32 ) ); // serialize the message (w/ sync, CRC, and appropriate CAN padding) and add serialized message data to appropriate comm buffer result = serializeMessage( msg, COMM_BUFFER_OUT_CAN_DG_BROADCAST, ACK_NOT_REQUIRED );