Fix bug and update external app sdk versions (#324)
- Fix bug in Development app: when launching/stopping external app due to LVGL being stopped and a timer still being active (sometimes, as it's a race condition) - Added TODO to fix the same bug in other apps - Update external app SDKs to `0.5.0-SNAPSHOT`
This commit is contained in:
committed by
GitHub
parent
35a918c82b
commit
f26266ba76
@@ -1,5 +1,7 @@
|
||||
#ifdef ESP_PLATFORM
|
||||
|
||||
#include "Tactility/lvgl/Lvgl.h"
|
||||
|
||||
#include <Tactility/Tactility.h>
|
||||
|
||||
#include <Tactility/app/AppManifest.h>
|
||||
@@ -28,7 +30,7 @@ class DevelopmentApp final : public App {
|
||||
|
||||
Timer timer = Timer(Timer::Type::Periodic, [this] {
|
||||
auto lock = lvgl::getSyncLock()->asScopedLock();
|
||||
if (lock.lock(lvgl::defaultLockTime)) {
|
||||
if (lock.lock(lvgl::defaultLockTime) && lvgl::isStarted()) {
|
||||
updateViewState();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user