Menu & UI: [#25, #35] Fixed UI.

*String in Menu are static. Temperature is limited by -99 and 99 bounds.
*UserInterface cleaned a bit.
This commit is contained in:
RedHawk
2023-05-10 13:11:41 +03:00
parent ea1139567a
commit 2b02a786fa
3 changed files with 25 additions and 20 deletions

View File

@@ -26,15 +26,11 @@ UserInterface::~UserInterface()
void UserInterface::taskFunction()
{
Event data(Event::Null, 0);
InterfaceWithData ui_with_data;
for (;;)
{
this->_qm->receive<UserInterface::InterfaceWithData>(ThreadCommon::QueueManager::ui_event_manager, &ui_with_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)
this->handleEvent(&ui_with_data);
}