mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-05-24 16:47:00 -04:00
EGD-2955 EGD-3588 Timers fully refactored & updated (#721)
* Timers now are Application thread safe * Timers now have consistent API independend of Application (no more c style timers) * Timers can have either: callback or override onTimer() method - this way we can create more complicated timers or just use existing ones * gui::Timer added via adapter class GuiTimer to decouple sys::Timer with gui::Timer * Fixed race in wrapper * Updated docs * fixed using std and cpp_freertos and DataReceivedHandler hidden in Application.hpp
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "../messages/EVMessages.hpp"
|
||||
|
||||
#include "../Constants.hpp"
|
||||
#include <Service/Bus.hpp>
|
||||
|
||||
bsp::Board EventManagerServiceAPI::GetBoard(sys::Service *serv)
|
||||
{
|
||||
@@ -16,7 +17,7 @@ bsp::Board EventManagerServiceAPI::GetBoard(sys::Service *serv)
|
||||
sevm::EVMBoardResponseMessage *response = dynamic_cast<sevm::EVMBoardResponseMessage *>(ret.second.get());
|
||||
|
||||
if (response != nullptr) {
|
||||
if ((ret.first == sys::ReturnCodes::Success)) {
|
||||
if (ret.first == sys::ReturnCodes::Success) {
|
||||
return response->board;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user