| 64 | *****************************************************************************/ |
| 65 | |
| 66 | bool SysMsg::init() |
| 67 | { |
| 68 | bool status = false; |
| 69 | |
| 70 | m_plugin = static_cast<SysMsgPlugin*>(PluginMgr::getInstance().install("SysMsgPlugin")); |
| 71 | |
| 72 | if (nullptr != m_plugin) |
| 73 | { |
| 74 | uint8_t slotId = DisplayMgr::getInstance().getSlotIdByPluginUID(m_plugin->getUID()); |
| 75 | |
| 76 | /* Set infinite slot duration, because the system message plugin will enable/disable |
| 77 | * itself. |
| 78 | */ |
| 79 | DisplayMgr::getInstance().setSlotDuration(slotId, 0U, false); |
| 80 | DisplayMgr::getInstance().lockSlot(slotId); |
| 81 | status = true; |
| 82 | } |
| 83 | |
| 84 | return status; |
| 85 | } |
| 86 | |
| 87 | void SysMsg::show(const String& msg, uint32_t duration, uint32_t max) |
| 88 | { |
nothing calls this directly
no test coverage detected