Skip to content

Commit

Permalink
can fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Oct 20, 2024
1 parent d85974e commit 72b7917
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Core/Inc/msb_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@
// Sensors to use, comment out to disable

// internal
//#define CAN_ENABLE
#define CAN_ENABLE

//on central
//#define SENSOR_TEMP
#define SENSOR_TEMP
#define SENSOR_SHOCKPOT
#define SENSOR_STRAIN
//#define SENSOR_TOF

//#define SENSOR_IMU
// on knuckle or wheel
#define SENSOR_IMU
// on knuckle or /wheel
//#define SENSOR_WHEEL_TEMP

// VERBOSE LOGGING
Expand Down
4 changes: 2 additions & 2 deletions Core/Src/can_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void vCanDispatch(void *pv_params)
osWaitForever)) {
#ifdef CAN_ENABLE
msg_status = can_send_msg(can1, &msg_from_queue);
if (msg_status == HAL_ERROR) {
if (msg_status != HAL_OK) {
printf("Failed to send CAN message");
} else if (msg_status == HAL_BUSY) {
printf("Outbound mailbox full!");
Expand All @@ -72,7 +72,7 @@ void vCanDispatch(void *pv_params)
#endif
}

osDelay(DELAY_CAN_DISPATCH);
//osDelay(DELAY_CAN_DISPATCH);
}
}

Expand Down

0 comments on commit 72b7917

Please sign in to comment.