Skip to content

Commit

Permalink
update to saabcan 2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Pespiri committed Jan 2, 2024
1 parent 1c3fae4 commit f2a4a52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/libraries/saab_can
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <saab_can/utilities/can_reader_util.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

#define MAIN_TAG "MAIN"
#define PACKET_TIMEOUT_MS 5000
Expand Down Expand Up @@ -43,7 +44,8 @@ void setup() {
delete can_handle;
}

sc_can_reader_subscription_t sub1 = {.id = "SUB_1", .frame_id = GAUGE_CAN_ID, .cb = handle_gauge_value_frame};
sc_can_reader_subscription_t sub1 = {.id = {}, .frame_id = GAUGE_CAN_ID, .cb = handle_gauge_value_frame};
snprintf(sub1.id, SC_CAN_RDR_SUB_ID_LENGTH, "SUB_1");
sc_can_reader_subscribe(sub1);

stepper_x27_driver::stepper_x27_cfg config = {};
Expand Down

0 comments on commit f2a4a52

Please sign in to comment.