diff --git a/packages/home/index.html b/packages/home/index.html index 4311dd83b..f8e904b23 100644 --- a/packages/home/index.html +++ b/packages/home/index.html @@ -111,7 +111,6 @@ href="../eez-studio-ui/_stylesheets/Roboto-Regular.ttf" as="font" type="font/ttf" - crossorigin /> flow->components[componentIndex]; auto userWidgetWidgetExecutionState = (LVGLUserWidgetExecutionState *)flowState->componenentExecutionStates[componentIndex]; if (!userWidgetWidgetExecutionState) { userWidgetWidgetExecutionState = createUserWidgetFlowState(flowState, componentIndex); @@ -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)); @@ -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; @@ -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; } diff --git a/resources/eez-framework-amalgamation/eez-flow.h b/resources/eez-framework-amalgamation/eez-flow.h index a6bf03fdd..606f2097f 100644 --- a/resources/eez-framework-amalgamation/eez-flow.h +++ b/resources/eez-framework-amalgamation/eez-flow.h @@ -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 *