mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-20 20:35:08 +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 <lvgl_window_manager/window_manager.h>
|
||||||
|
|
||||||
|
#include <tactility/check.h>
|
||||||
|
|
||||||
#include <lvgl.h>
|
#include <lvgl.h>
|
||||||
#include <lvgl/widgets/toolbar.h>
|
#include <lvgl/widgets/toolbar.h>
|
||||||
|
|
||||||
@ -24,8 +26,8 @@ int main(int argc, char* argv[]) {
|
|||||||
struct TaskEventGroup event_group = {0};
|
struct TaskEventGroup event_group = {0};
|
||||||
task_event_group_construct(&event_group);
|
task_event_group_construct(&event_group);
|
||||||
|
|
||||||
struct AppEventSubscription sub = { .app_instance_id = app_instance_id };
|
struct AppEventSubscription sub = {0};
|
||||||
app_event_subscribe(&sub, &event_group);
|
check(app_event_subscribe(&sub, &event_group) == ERROR_NONE);
|
||||||
|
|
||||||
WindowId window = window_manager_create(app_instance_id, create_widgets, NULL);
|
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);
|
window_manager_remove(window);
|
||||||
app_event_unsubscribe(&sub);
|
check(app_event_unsubscribe(&sub) == ERROR_NONE);
|
||||||
task_event_group_destruct(&event_group);
|
task_event_group_destruct(&event_group);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user