mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-17 02:45:05 +00:00
Fix SdkIntegration test
This commit is contained in:
parent
890477c233
commit
8250566549
@ -4,6 +4,8 @@
|
||||
|
||||
#include <lvgl_window_manager/window_manager.h>
|
||||
|
||||
#include <tactility/check.h>
|
||||
|
||||
#include <lvgl.h>
|
||||
#include <lvgl/widgets/toolbar.h>
|
||||
|
||||
@ -24,8 +26,8 @@ int main(int argc, char* argv[]) {
|
||||
struct TaskEventGroup event_group = {0};
|
||||
task_event_group_construct(&event_group);
|
||||
|
||||
struct AppEventSubscription sub = { .app_instance_id = app_instance_id };
|
||||
app_event_subscribe(&sub, &event_group);
|
||||
struct AppEventSubscription sub = {0};
|
||||
check(app_event_subscribe(&sub, &event_group) == ERROR_NONE);
|
||||
|
||||
WindowId window = window_manager_create(app_instance_id, create_widgets, NULL);
|
||||
|
||||
@ -43,7 +45,7 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
window_manager_remove(window);
|
||||
app_event_unsubscribe(&sub);
|
||||
check(app_event_unsubscribe(&sub) == ERROR_NONE);
|
||||
task_event_group_destruct(&event_group);
|
||||
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user