Updates for removal of deprecated HAL (#37)
Update all apps to replace deprecated LVGL code and to use the new kernel APIs.
This commit is contained in:
committed by
GitHub
parent
25b966a340
commit
4f635d38e3
@@ -8,12 +8,13 @@
|
||||
#include <functional>
|
||||
|
||||
#include <tt_app_alertdialog.h>
|
||||
#include <tt_lvgl.h>
|
||||
#include <TactilityCpp/LvglLock.h>
|
||||
#include <TactilityCpp/Preferences.h>
|
||||
#include <tactility/device.h>
|
||||
#include <tactility/drivers/uart_controller.h>
|
||||
|
||||
constexpr TickType_t LVGL_DEFAULT_LOCK_TIME = 500; // 500 ticks = 500 ms
|
||||
|
||||
class ConnectView final : public View {
|
||||
|
||||
public:
|
||||
@@ -45,7 +46,7 @@ private:
|
||||
|
||||
void onConnect() {
|
||||
auto lock = lvglLock.asScopedLock();
|
||||
if (!lock.lock(TT_LVGL_DEFAULT_LOCK_TIME)) {
|
||||
if (!lock.lock(LVGL_DEFAULT_LOCK_TIME)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user