Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -ra0c1350fb3266a722f91298dde1e97876081cd2e -rfe738f3cd0fb9a3ab1ea52e202543ab7bde56825 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision a0c1350fb3266a722f91298dde1e97876081cd2e) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision fe738f3cd0fb9a3ab1ea52e202543ab7bde56825) @@ -4713,4 +4713,30 @@ sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, status ); } +/*********************************************************************//** + * @brief + * The handleTestDGSetConductivitySensorCalTable function handles a request to + * set the conductivity sensor's calibration table. + * @details Inputs: none + * @details Outputs: message handled + * @param message a pointer to the message to handle + * @return none + *************************************************************************/ +void handleTestDGSetConductivitySensorCalTable( MESSAGE_T* message ) +{ + BOOL status = FALSE; + + if ( sizeof( CONDUCTIVITY_SENSOR_CAL_TABLE_T ) == message->hdr.payloadLen ) + { + CONDUCTIVITY_SENSOR_CAL_TABLE_T payload; + + memcpy( &payload, message->payload, sizeof( CONDUCTIVITY_SENSOR_CAL_TABLE_T ) ); + + testSetConductivitySensorCalibrationTable( &payload ); + } + + // Respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, status ); +} + /**@}*/