threads: master: [#46] add error on Evemt::Null
This commit is contained in:
@@ -42,6 +42,7 @@ void Master::HandleEventType(Event* e)
|
|||||||
switch (e->getType())
|
switch (e->getType())
|
||||||
{
|
{
|
||||||
case Event::Null:
|
case Event::Null:
|
||||||
|
LOG_ERROR("Master recieved Event::Null with data: %d", rd);
|
||||||
break;
|
break;
|
||||||
case Event::Rotary:
|
case Event::Rotary:
|
||||||
//Comes from rotary, goes to manager
|
//Comes from rotary, goes to manager
|
||||||
@@ -78,7 +79,7 @@ void Master::taskFunction() {
|
|||||||
{
|
{
|
||||||
data.setEvent(Event::Rotary, ThreadCommon::RotaryAction::Idle);
|
data.setEvent(Event::Rotary, ThreadCommon::RotaryAction::Idle);
|
||||||
}
|
}
|
||||||
|
|
||||||
HandleEventType(&data);
|
HandleEventType(&data);
|
||||||
|
|
||||||
global_clock->updateClock();
|
global_clock->updateClock();
|
||||||
|
|||||||
Reference in New Issue
Block a user