From 90e4e0e43d73324b104ba9dadeea967ac204e361 Mon Sep 17 00:00:00 2001 From: Vasily Davydov Date: Thu, 18 May 2023 23:44:38 +0300 Subject: [PATCH] threads: master: [#46] add error on Evemt::Null --- source/shoh/src/threads/master/Master.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/shoh/src/threads/master/Master.cpp b/source/shoh/src/threads/master/Master.cpp index 643480e..a431323 100644 --- a/source/shoh/src/threads/master/Master.cpp +++ b/source/shoh/src/threads/master/Master.cpp @@ -42,6 +42,7 @@ void Master::HandleEventType(Event* e) switch (e->getType()) { case Event::Null: + LOG_ERROR("Master recieved Event::Null with data: %d", rd); break; case Event::Rotary: //Comes from rotary, goes to manager @@ -78,7 +79,7 @@ void Master::taskFunction() { { data.setEvent(Event::Rotary, ThreadCommon::RotaryAction::Idle); } - + HandleEventType(&data); global_clock->updateClock();