Re-implement Core2 and other improvements (#141)
- Create real drivers instead of wrapping M5Unified/M5GFX - Display HAL improvements (better default base class behaviour) - Fixed bug with LVGL statusbar service locking (would hang indefinitely waiting for mutex, causing WDT issues) - Fixes for `Critical.h` - Fixes and improvements for `Dispatcher` and `DispatcherThread`
This commit is contained in:
committed by
GitHub
parent
50bd6e8bf6
commit
9581978fc7
@@ -10,6 +10,7 @@
|
||||
#include "service/wifi/Wifi.h"
|
||||
#include "service/ServiceRegistry.h"
|
||||
#include "TactilityHeadless.h"
|
||||
#include "lvgl/LvglSync.h"
|
||||
|
||||
namespace tt::service::statusbar {
|
||||
|
||||
@@ -182,7 +183,10 @@ static void onUpdate(std::shared_ptr<void> parameter) {
|
||||
}
|
||||
|
||||
static void onStart(ServiceContext& service) {
|
||||
lvgl::lock(TtWaitForever);
|
||||
auto data = std::make_shared<ServiceData>();
|
||||
lvgl::unlock();
|
||||
|
||||
service.setData(data);
|
||||
|
||||
// TODO: Make thread-safe for LVGL
|
||||
|
||||
Reference in New Issue
Block a user