Changed controller getter

This commit is contained in:
@CarlWachter
2024-01-01 16:34:58 +01:00
parent 810f34e2da
commit 849e523d2c
2 changed files with 2 additions and 19 deletions

View File

@@ -25,23 +25,6 @@
#include <cstring>
namespace
{
osThreadId_t canBusTaskHandle = nullptr;
osMessageQueueId_t canBusDataQueueHandle = nullptr;
osMessageQueueId_t canBusSysQueueHandle = nullptr;
sta::CanController * canBusController = nullptr;
const size_t queueLength = 8;
// Static memory buffers
CanDataMsg canBusDataQueueBuffer[queueLength];
CanSysMsg canBusSysQueueBuffer[queueLength];
uint32_t canBusStack[256];
}
namespace sta
{
namespace rtos
@@ -274,7 +257,7 @@ namespace sta
if (controller_->receiveFrame(fifo, &header, payload))
{
// debug::displayFrameUART(frame);
//debug::displayFrameUART(frame);
// Forward frame to callback
switch (fifo)