studio icon indicating copy to clipboard operation
studio copied to clipboard

Possibly a bug. Missing #include <string.h> statement

Open gwiethaus opened this issue 1 year ago • 0 comments

Bug

The #include <string.h> declaration is missing in the ui.c file due to the strcmp() function in the generated code:

static const void *getLvglImageByName(const char *name) {
    for (size_t imageIndex = 0; imageIndex < sizeof(images) / sizeof(ext_img_desc_t); imageIndex++) {
        if (strcmp(images[imageIndex].name, name) == 0) {
            return images[imageIndex].img_dsc;
        }
    }
    return 0;
}

Screen:

01

02

Desktop:

  • OS: Windows 10
  • Library: LVGL 9.2.0
  • Visual Studio Code 1.90.2
  • Platformio: Core 6.1.15, Home 3.4.4
  • EEZ Studio 0.16.0

gwiethaus avatar Sep 05 '24 12:09 gwiethaus