Renamed getLvglSyncLock() to getSyncLock() (#221)
This commit is contained in:
committed by
GitHub
parent
6e77d5027f
commit
ad2cad3bf1
@@ -228,7 +228,7 @@ void View::showActionsForFile() {
|
||||
}
|
||||
|
||||
void View::update() {
|
||||
auto scoped_lockable = lvgl::getLvglSyncLock()->scoped();
|
||||
auto scoped_lockable = lvgl::getSyncLock()->scoped();
|
||||
if (scoped_lockable->lock(100 / portTICK_PERIOD_MS)) {
|
||||
lv_obj_clean(dir_entry_list);
|
||||
|
||||
@@ -277,14 +277,14 @@ void View::init(lv_obj_t* parent) {
|
||||
}
|
||||
|
||||
void View::onDirEntryListScrollBegin() {
|
||||
auto scoped_lockable = lvgl::getLvglSyncLock()->scoped();
|
||||
auto scoped_lockable = lvgl::getSyncLock()->scoped();
|
||||
if (scoped_lockable->lock(100 / portTICK_PERIOD_MS)) {
|
||||
lv_obj_add_flag(action_list, LV_OBJ_FLAG_HIDDEN);
|
||||
}
|
||||
}
|
||||
|
||||
void View::onNavigate() {
|
||||
auto scoped_lockable = lvgl::getLvglSyncLock()->scoped();
|
||||
auto scoped_lockable = lvgl::getSyncLock()->scoped();
|
||||
if (scoped_lockable->lock(100 / portTICK_PERIOD_MS)) {
|
||||
lv_obj_add_flag(action_list, LV_OBJ_FLAG_HIDDEN);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user