Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r7218f3c5a0afef9ebbf47655a00f37fc2eefd0f9 -ref25ad960d479d1237d8b6e844941b6680a8edc0 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 7218f3c5a0afef9ebbf47655a00f37fc2eefd0f9) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision ef25ad960d479d1237d8b6e844941b6680a8edc0) @@ -3405,8 +3405,24 @@ if ( 0 == message->hdr.payloadLen ) { - // TODO - call TBD function in NVDataMgmt to send calibration data - result = FALSE; + CALIBRATION_DATA_T cal; + MESSAGE_T msg; + U08 *payloadPtr = msg.payload; + + // get calibration data + result = getCalibrationData( &cal ); + if ( TRUE == result ) + { + // create a message record + blankMessage( &msg ); + msg.hdr.msgID = MSG_ID_HD_CALIBRATION_DATA; + msg.hdr.payloadLen = sizeof( CALIBRATION_DATA_T ); + + memcpy( payloadPtr, &cal, sizeof( CALIBRATION_DATA_T ) ); + + // 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_HD_BROADCAST, ACK_NOT_REQUIRED ); + } } // respond to request