Created
May 15, 2014 21:30
-
-
Save duk3luk3/9111ac8c6c7da7d65e8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void ReturnMSG(CAN_MSG_OBJ* orig) { | |
CAN_MSG_OBJ msg; | |
msg.mode_id = (orig->mode_id & ~CAN_MSG_ID_MASK) | CAN_NODE_ID; | |
msg.dlc = orig->dlc; | |
memcpy(msg.data, orig->data, 8); | |
q_put(&msg, &sendQ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment