Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Aug 9, 2024
1 parent afa442f commit 057cdb4
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 8 deletions.
1 change: 0 additions & 1 deletion packages/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
href="../eez-studio-ui/_stylesheets/Roboto-Regular.ttf"
as="font"
type="font/ttf"
crossorigin
/>
<link
rel="preload"
Expand Down
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.
29 changes: 24 additions & 5 deletions resources/eez-framework-amalgamation/eez-flow.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated on August 8, 2024 4:34:17 PM from eez-framework commit 7dfc0cd5eaa79e69ba8d7d9f0ba279c7d0f40700 */
/* Autogenerated on August 9, 2024 1:39:47 PM from eez-framework commit 36b85e72231dcf70de13b888940c233e8eb718d6 */
/*
* eez-framework
*
Expand Down Expand Up @@ -2662,9 +2662,17 @@ Value Value::toString(uint32_t id) const {
} else if (type == VALUE_TYPE_UINT32) {
snprintf(tempStr, sizeof(tempStr), "%" PRIu32 "", uint32Value);
} else if (type == VALUE_TYPE_INT64) {
#ifdef PRId64
snprintf(tempStr, sizeof(tempStr), "%" PRId64 "", int64Value);
#else
snprintf(tempStr, sizeof(tempStr), "%" PRId32 "", (int32_t)int64Value);
#endif
} else if (type == VALUE_TYPE_UINT64) {
#ifdef PRIu64
snprintf(tempStr, sizeof(tempStr), "%" PRIu64 "", uint64Value);
#else
snprintf(tempStr, sizeof(tempStr), "%" PRIu32 "", (uint32_t)uint64Value);
#endif
} else {
toText(tempStr, sizeof(tempStr));
}
Expand Down Expand Up @@ -3889,7 +3897,6 @@ LVGLUserWidgetExecutionState *createUserWidgetFlowState(FlowState *flowState, un
return userWidgetWidgetExecutionState;
}
void executeLVGLUserWidgetComponent(FlowState *flowState, unsigned componentIndex) {
auto component = (LVGLUserWidgetComponent *)flowState->flow->components[componentIndex];
auto userWidgetWidgetExecutionState = (LVGLUserWidgetExecutionState *)flowState->componenentExecutionStates[componentIndex];
if (!userWidgetWidgetExecutionState) {
userWidgetWidgetExecutionState = createUserWidgetFlowState(flowState, componentIndex);
Expand Down Expand Up @@ -5315,10 +5322,18 @@ void writeValue(const Value &value) {
snprintf(tempStr, sizeof(tempStr) - 1, "%" PRIu32 "", value.uint32Value);
break;
case VALUE_TYPE_INT64:
#ifdef PRId64
snprintf(tempStr, sizeof(tempStr) - 1, "%" PRId64 "", value.int64Value);
#else
snprintf(tempStr, sizeof(tempStr) - 1, "%" PRId32 "", (int32_t)value.int64Value);
#endif
break;
case VALUE_TYPE_UINT64:
#ifdef PRIu64
snprintf(tempStr, sizeof(tempStr) - 1, "%" PRIu64 "", value.uint64Value);
#else
snprintf(tempStr, sizeof(tempStr) - 1, "%" PRIu32 "", (uint32_t)value.uint64Value);
#endif
break;
case VALUE_TYPE_DOUBLE:
writeHex(tempStr, (uint8_t *)&value.doubleValue, sizeof(double));
Expand Down Expand Up @@ -5350,7 +5365,11 @@ void writeValue(const Value &value) {
writeHex(tempStr + 1, (uint8_t *)&value.doubleValue, sizeof(double));
break;
case VALUE_TYPE_POINTER:
#ifdef PRIu64
snprintf(tempStr, sizeof(tempStr) - 1, "%" PRIu64 "", (uint64_t)value.getVoidPointer());
#else
snprintf(tempStr, sizeof(tempStr) - 1, "%" PRIu32 "", (uint32_t)value.getVoidPointer());
#endif
break;
default:
tempStr[0] = 0;
Expand Down Expand Up @@ -6621,11 +6640,11 @@ bool compareRollerOptions(lv_roller_t *roller, const char *new_val, const char *
}
auto n = strlen(new_val);
#if LVGL_VERSION_MAJOR >= 9
int numPages = roller->inf_page_cnt;
size_t numPages = roller->inf_page_cnt;
#else
int numPages = LV_ROLLER_INF_PAGES;
size_t numPages = LV_ROLLER_INF_PAGES;
#endif
for (int i = 0; i < numPages * (n + 1); i += n + 1) {
for (size_t i = 0; i < numPages * (n + 1); i += n + 1) {
if (strncmp(new_val, cur_val + i, n) != 0) {
return true;
}
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 August 8, 2024 4:34:17 PM from eez-framework commit 7dfc0cd5eaa79e69ba8d7d9f0ba279c7d0f40700 */
/* Autogenerated on August 9, 2024 1:39:47 PM from eez-framework commit 36b85e72231dcf70de13b888940c233e8eb718d6 */
/*
* eez-framework
*
Expand Down

0 comments on commit 057cdb4

Please sign in to comment.