Skip to content

Commit

Permalink
fixed: [EEZ Flow] Assignable user property to flow output only works …
Browse files Browse the repository at this point in the history
…for native user actions #596
  • Loading branch information
mvladic committed Oct 17, 2024
1 parent f07d4f2 commit 56556a9
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
Submodule lvgl updated from b55aad to acc300
Binary file modified packages/project-editor/flow/runtime/eez_runtime.wasm
Binary file not shown.
Binary file modified packages/project-editor/flow/runtime/lvgl_runtime_v8.3.wasm
Binary file not shown.
Binary file modified packages/project-editor/flow/runtime/lvgl_runtime_v9.0.wasm
Binary file not shown.
2 changes: 0 additions & 2 deletions packages/project-editor/lvgl/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ export class LVGLBuild extends Build {
"",
false
);

console.log(this.lvglObjectIdentifiers);
}

isAccessibleFromSourceCode(widget: LVGLWidget) {
Expand Down
13 changes: 10 additions & 3 deletions resources/eez-framework-amalgamation/eez-flow.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated on October 17, 2024 10:33:39 AM from eez-framework commit b44b5e6a9d48f0b14b8af0ab02537c9c14f4ab95 */
/* Autogenerated on October 17, 2024 11:48:27 AM from eez-framework commit b44b5e6a9d48f0b14b8af0ab02537c9c14f4ab95 */
/*
* eez-framework
*
Expand Down Expand Up @@ -3214,6 +3214,9 @@ void executeCallAction(FlowState *flowState, unsigned componentIndex, int flowIn
if (!evalAssignableProperty(flowState, componentIndex, i, value, FlowError::UserProperty("CallAction", i))) {
break;
}
if (value.getType() == VALUE_TYPE_FLOW_OUTPUT) {
value = Value::makePropertyRef(flowState, componentIndex, i, 0x5696e703);
}
} else {
if (!evalProperty(flowState, componentIndex, i, value, FlowError::UserAssignableProperty("CallAction", i))) {
break;
Expand Down Expand Up @@ -10384,8 +10387,12 @@ void assignValue(FlowState *flowState, int componentIndex, Value &dstValue, cons
auto propertyRef = pDstValue->getPropertyRef();
Value dstValue;
if (evalAssignableProperty(propertyRef->flowState, propertyRef->componentIndex, propertyRef->propertyIndex, dstValue, FlowError::Plain("Failed to evaluate an assignable user property in UserWidget"), nullptr, nullptr)) {
assignValue(flowState, componentIndex, dstValue, srcValue);
onValueChanged(pDstValue);
if (dstValue.getType() == VALUE_TYPE_FLOW_OUTPUT) {
propagateValue(propertyRef->flowState, propertyRef->componentIndex, dstValue.getUInt16(), srcValue);
} else {
assignValue(flowState, componentIndex, dstValue, srcValue);
onValueChanged(pDstValue);
}
}
return;
}
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 October 17, 2024 10:33:39 AM from eez-framework commit b44b5e6a9d48f0b14b8af0ab02537c9c14f4ab95 */
/* Autogenerated on October 17, 2024 11:48:27 AM from eez-framework commit b44b5e6a9d48f0b14b8af0ab02537c9c14f4ab95 */
/*
* eez-framework
*
Expand Down

0 comments on commit 56556a9

Please sign in to comment.