Skip to content

Commit

Permalink
commented out hash can message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Hensley committed Jan 17, 2025
1 parent 9ef9282 commit 27c79c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Core/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1202,13 +1202,14 @@ struct __attribute__((__packed__)) git_version_data {
* @brief Sends git version infomation as a can message
*/
void send_git_version_message() {
const struct git_hash_data git_hash_data2 = {GIT_SHORTHASH , GIT_AUTHORHASH};
//const struct git_hash_data git_hash_data2 = {GIT_SHORTHASH , GIT_AUTHORHASH};
const struct git_version_data git_version_data2 = {GIT_MAJOR_VERSION , GIT_MINOR_VERSION, GIT_PATCH_VERSION, GIT_IS_UPSTREAM_CLEAN, GIT_IS_LOCAL_CLEAN};

can_msg_t msg1 = { .id = 0x698, .len = sizeof(git_version_data2)};
can_msg_t msg2 = { .id = 0x699, .len = sizeof(git_hash_data2)};
//can_msg_t msg2 = { .id = 0x699, .len = sizeof(git_hash_data2)};

memcpy(&msg1.data, &git_version_data2, sizeof(git_version_data2));
memcpy(&msg2.data, &git_hash_data2, sizeof(git_hash_data2));
//memcpy(&msg2.data, &git_hash_data2, sizeof(git_hash_data2));

queue_can_msg(msg1);
//queue_can_msg(msg2);
Expand Down

0 comments on commit 27c79c0

Please sign in to comment.