Skip to content

Commit

Permalink
fixing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodasilva2005 committed Mar 17, 2024
1 parent bbffc5f commit 30bb709
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/Src/can_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ void vCanDispatch(void* pv_params)
}
}

static osThreadId_t bms_can_monitor_handle;
osThreadAttr_t bms_can_monitor_attributes = {
osThreadId_t bms_can_monitor_handle;
const osThreadAttr_t bms_can_monitor_attributes = {
.name = "BMSCANMonitor",
.stack_size = 128 * 8,
.priority = (osPriority_t)osPriorityLow1 /*Adjust priority*/
Expand All @@ -164,7 +164,7 @@ void vBMSCANMonitor(void* pv_params)
HAL_StatusTypeDef msg_status;
can_t* can1 = (can_t*)pv_params;

nertimer_t* timer;
nertimer_t timer;

if (osOK == osMessageQueueGet(can_outbound_queue, &msg_from_queue, NULL, osWaitForever)) {
if (msg_from_queue.id == CAN_BMS_MONITOR) {
Expand Down

0 comments on commit 30bb709

Please sign in to comment.