Master.cpp: Fixing uninitialised memory.
This commit is contained in:
parent
98e9e11355
commit
34f6b5b694
@ -14,11 +14,11 @@ Master::Master(ThreadCommon::QueueManager* qm) : _qm(qm)
|
|||||||
|
|
||||||
void Master::taskFunction() {
|
void Master::taskFunction() {
|
||||||
QueueHandle_t master_event_all_q = _qm->getQueue(ThreadCommon::QueueManager::master_event_all);
|
QueueHandle_t master_event_all_q = _qm->getQueue(ThreadCommon::QueueManager::master_event_all);
|
||||||
ThreadCommon::Event* data;
|
ThreadCommon::Event data(ThreadCommon::Null, 0);
|
||||||
int led = 0;
|
int led = 0;
|
||||||
bool LedState = true;
|
bool LedState = true;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
xQueueReceive(master_event_all_q, static_cast<void*>(data), portMAX_DELAY);
|
xQueueReceive(master_event_all_q, static_cast<void*>(&data), portMAX_DELAY);
|
||||||
Board_LED_Set(led, LedState);
|
Board_LED_Set(led, LedState);
|
||||||
LedState = (bool) !LedState;
|
LedState = (bool) !LedState;
|
||||||
led++;
|
led++;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user