* The code is a mess for now. I'm not sure if there is any reason to send a whole event to UI, it's better to send InterfaceWithData. * Sending to queue from Menu isn't great as well.
This commit is contained in:
@@ -32,7 +32,7 @@ void UserInterface::taskFunction()
|
||||
|
||||
for (;;)
|
||||
{
|
||||
this->_qm->receive(ThreadCommon::QueueManager::ui_event_manager, &data, portMAX_DELAY);
|
||||
this->_qm->receive<Event>(ThreadCommon::QueueManager::ui_event_manager, &data, portMAX_DELAY);
|
||||
//Don't mind the type, we care only about the raw_data.
|
||||
EventRawData ed = data.getDataOf(Event::NotifyUI);
|
||||
if(ed != ERROR_RETURN)
|
||||
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
|
||||
union InterfaceData
|
||||
{
|
||||
char str[64];
|
||||
const char str[64];
|
||||
};
|
||||
|
||||
struct InterfaceWithData
|
||||
|
||||
Reference in New Issue
Block a user