threads: master: [#46] correct if statement

This commit is contained in:
Vasily Davydov 2023-05-18 23:42:10 +03:00
parent 7c7e69ffa1
commit 5441e3a9ca

View File

@ -75,7 +75,9 @@ void Master::taskFunction() {
for (;;)
{
if(!_qm->receive<Event>(ThreadCommon::QueueManager::master_event_all, &data, 10000))
data.setDataOf(Event::Rotary, ThreadCommon::RotaryAction::Idle);
{
data.setEvent(Event::Rotary, ThreadCommon::RotaryAction::Idle);
}
HandleEventType(&data);