Skip to content

Commit

Permalink
Fixed: [LVGL] Change Screen in LVGL action when using expression for …
Browse files Browse the repository at this point in the history
…the Screen property doesn't work in compiled code #636
  • Loading branch information
mvladic committed Nov 17, 2024
1 parent 3309f36 commit d8fe5b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/project-editor/flow/runtime/cpp/eez-framework
5 changes: 3 additions & 2 deletions resources/eez-framework-amalgamation/eez-flow.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated on November 16, 2024 4:57:49 PM from eez-framework commit 7a01ce78cb06c38d668e4873296b5652ec55b43f */
/* Autogenerated on November 17, 2024 10:35:13 AM from eez-framework commit 3dee6f40927c74568901c8c97f3e16b4ecbb6051 */
/*
* eez-framework
*
Expand Down Expand Up @@ -7332,7 +7332,7 @@ static lv_group_t *getLvglGroupFromIndex(int32_t index) {
static int32_t getLvglScreenByName(const char *name) {
for (size_t i = 0; i < g_numScreens; i++) {
if (strcmp(g_screenNames[i], name) == 0) {
return i;
return i + 1;
}
}
return -1;
Expand Down Expand Up @@ -7428,6 +7428,7 @@ extern "C" void eez_flow_init(const uint8_t *assets, uint32_t assetsSize, lv_obj
eez::initAllocHeap(eez::ALLOC_BUFFER, eez::ALLOC_BUFFER_SIZE);
eez::flow::replacePageHook = replacePageHook;
eez::flow::getLvglObjectFromIndexHook = getLvglObjectFromIndex;
eez::flow::getLvglScreenByNameHook = getLvglScreenByName;
eez::flow::getLvglObjectByNameHook = getLvglObjectByName;
eez::flow::getLvglGroupByNameHook = getLvglGroupByName;
eez::flow::getLvglStyleByNameHook = getLvglStyleByName;
Expand Down
2 changes: 1 addition & 1 deletion resources/eez-framework-amalgamation/eez-flow.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated on November 16, 2024 4:57:49 PM from eez-framework commit 7a01ce78cb06c38d668e4873296b5652ec55b43f */
/* Autogenerated on November 17, 2024 10:35:13 AM from eez-framework commit 3dee6f40927c74568901c8c97f3e16b4ecbb6051 */
/*
* eez-framework
*
Expand Down

0 comments on commit d8fe5b2

Please sign in to comment.