mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
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:
parent
35a918c82b
commit
f26266ba76
@ -16,6 +16,7 @@
|
||||
- Create an "app install paths" settings app to add/remove paths.
|
||||
Scan these paths on startup.
|
||||
Make the AppList use the scan results.
|
||||
- Apps with update timer should check `lvgl::isStarted()`
|
||||
|
||||
## Medium Priority
|
||||
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
[sdk]
|
||||
version = 0.4.0
|
||||
version = 0.5.0-SNAPSHOT
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
[sdk]
|
||||
version = 0.4.0
|
||||
version = 0.5.0-SNAPSHOT
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
[sdk]
|
||||
version = 0.4.0
|
||||
version = 0.5.0-SNAPSHOT
|
||||
|
||||
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user