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:
Ken Van Hoeylandt 2025-09-07 11:44:18 +02:00 committed by GitHub
parent 35a918c82b
commit f26266ba76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -1,2 +1,2 @@
[sdk]
version = 0.4.0
version = 0.5.0-SNAPSHOT

View File

@ -1,2 +1,2 @@
[sdk]
version = 0.4.0
version = 0.5.0-SNAPSHOT

View File

@ -1,2 +1,2 @@
[sdk]
version = 0.4.0
version = 0.5.0-SNAPSHOT

View File

@ -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();
}
});