thread-manager: create on heap

Add a simple queue-manager test
This commit is contained in:
Vasily Davydov
2023-04-26 01:03:40 +03:00
parent 4a553e3093
commit ad4a100989
2 changed files with 5 additions and 9 deletions

View File

@@ -18,13 +18,9 @@ void Master::taskFunction() {
bool LedState = true;
for (;;) {
_qm->receive<ThreadCommon::Event>(ThreadCommon::QueueManager::master_event_all, &data, portMAX_DELAY);
Board_LED_Set(led, LedState);
LedState = (bool) !LedState;
led++;
if(led > 2){
led = 0;
if(data.getData() == 1 && data.getType() == ThreadCommon::EventType::Rotary){
Board_LED_Set(led, LedState);
}
vTaskDelay(1000);
}
}