Skip to content

Instantly share code, notes, and snippets.

@duk3luk3
Created May 15, 2014 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duk3luk3/9111ac8c6c7da7d65e8d to your computer and use it in GitHub Desktop.
Save duk3luk3/9111ac8c6c7da7d65e8d to your computer and use it in GitHub Desktop.
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