Skip to content

[LVGL] When Flow support is enabled, errors occur in ui.h and ui.c #761

Open
@SinglWolf

Description

@SinglWolf

When Flow support is enabled, errors occur in ui.h and ui.c
In ui.h:
Image
Why use this incomprehensible construction

#if !defined(EEZ_FOR_LVGL)
#warning "EEZ_FOR_LVGL is not enabled"
#define EEZ_FOR_LVGL
#endif

when you can just add

#include <eez-framework.h>

In ui.c:
Including on the header file does not work

#include <eez/core/vars.h>

Image
A working variant

#include "ui.h"
#if defined(EEZ_FOR_LVGL)
#include <eez/core/vars.h>
#endif

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions