diff --git a/Core/Src/can_handler.c b/Core/Src/can_handler.c index ddd707d0..1b760289 100644 --- a/Core/Src/can_handler.c +++ b/Core/Src/can_handler.c @@ -104,7 +104,7 @@ void vRouteCanIncoming(void* pv_params) } } -static osMessageQueueId_t can_outbound_queue; +static osMessageQueueId_t can_outbound_queue = 0; osThreadId_t can_dispatch_handle; const osThreadAttr_t can_dispatch_attributes = { .name = "CanDispatch", @@ -112,8 +112,6 @@ const osThreadAttr_t can_dispatch_attributes = { .priority = (osPriority_t) osPriorityAboveNormal4, }; -osMessageQueueId_t can_outbound_queue = 0; - void vCanDispatch(void* pv_params) { const uint16_t can_dispatch_delay = 100; //ms