From 5441e3a9ca3dacb47e6f124e05f9cefe3572fdb8 Mon Sep 17 00:00:00 2001 From: Vasily Davydov Date: Thu, 18 May 2023 23:42:10 +0300 Subject: [PATCH] threads: master: [#46] correct if statement --- source/shoh/src/threads/master/Master.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/shoh/src/threads/master/Master.cpp b/source/shoh/src/threads/master/Master.cpp index 3a0ad0d..643480e 100644 --- a/source/shoh/src/threads/master/Master.cpp +++ b/source/shoh/src/threads/master/Master.cpp @@ -75,8 +75,10 @@ void Master::taskFunction() { for (;;) { if(!_qm->receive(ThreadCommon::QueueManager::master_event_all, &data, 10000)) - data.setDataOf(Event::Rotary, ThreadCommon::RotaryAction::Idle); - + { + data.setEvent(Event::Rotary, ThreadCommon::RotaryAction::Idle); + } + HandleEventType(&data); global_clock->updateClock();