Skip to content

Commit 1e0a4c2

Browse files
committedJan 26, 2025
update eez-framework
1 parent 9f9b2a2 commit 1e0a4c2

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed
 
Binary file not shown.
Binary file not shown.
Binary file not shown.

‎resources/eez-framework-amalgamation/eez-flow.cpp

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Autogenerated on January 24, 2025 9:01:25 PM from eez-framework commit 3e77217de3bfe5f3bee72e7c438adff9f71b8401 */
1+
/* Autogenerated on January 26, 2025 4:44:23 PM from eez-framework commit 0006a5c3421e344c1cceb13528634cd9dd62adac */
22
/*
33
* eez-framework
44
*
@@ -6826,7 +6826,11 @@ namespace flow {
68266826
#if defined(__EMSCRIPTEN__)
68276827
uint32_t g_wasmModuleId = 0;
68286828
#endif
6829-
static const uint32_t FLOW_TICK_MAX_DURATION_MS = 5;
6829+
#if !defined(EEZ_FLOW_TICK_MAX_DURATION_MS)
6830+
#define EEZ_FLOW_TICK_MAX_DURATION_MS 5
6831+
#endif
6832+
static const uint32_t FLOW_TICK_MAX_DURATION_MS = EEZ_FLOW_TICK_MAX_DURATION_MS;
6833+
static unsigned g_tick_max_duration_count = 0;
68306834
int g_selectedLanguage = 0;
68316835
FlowState *g_firstFlowState;
68326836
FlowState *g_lastFlowState;
@@ -6856,6 +6860,7 @@ void tick() {
68566860
return;
68576861
}
68586862
uint32_t startTickCount = millis();
6863+
visitWatchList();
68596864
auto queueSizeAtTickStart = getQueueSize();
68606865
for (size_t i = 0; i < queueSizeAtTickStart || g_numNonContinuousTaskInQueue > 0; i++) {
68616866
FlowState *flowState;
@@ -6891,11 +6896,11 @@ void tick() {
68916896
}
68926897
if ((i + 1) % 5 == 0) {
68936898
if (millis() - startTickCount >= FLOW_TICK_MAX_DURATION_MS) {
6899+
g_tick_max_duration_count++;
68946900
break;
68956901
}
68966902
}
68976903
}
6898-
visitWatchList();
68996904
finishToDebuggerMessageHook();
69006905
}
69016906
void stop() {
@@ -6915,6 +6920,9 @@ void doStop() {
69156920
bool isFlowStopped() {
69166921
return g_isStopped;
69176922
}
6923+
unsigned getTickMaxDurationCounter() {
6924+
return g_tick_max_duration_count;
6925+
}
69186926
#if EEZ_OPTION_GUI
69196927
FlowState *getPageFlowState(Assets *assets, int16_t pageIndex, const WidgetCursor &widgetCursor) {
69206928
if (!assets->flowDefinition) {

‎resources/eez-framework-amalgamation/eez-flow.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Autogenerated on January 24, 2025 9:01:25 PM from eez-framework commit 3e77217de3bfe5f3bee72e7c438adff9f71b8401 */
1+
/* Autogenerated on January 26, 2025 4:44:23 PM from eez-framework commit 0006a5c3421e344c1cceb13528634cd9dd62adac */
22
/*
33
* eez-framework
44
*
@@ -2615,6 +2615,7 @@ unsigned start(Assets *assets);
26152615
void tick();
26162616
void stop();
26172617
bool isFlowStopped();
2618+
unsigned getTickMaxDurationCounter();
26182619
#if EEZ_OPTION_GUI
26192620
FlowState *getPageFlowState(Assets *assets, int16_t pageIndex, const WidgetCursor &widgetCursor);
26202621
#else

0 commit comments

Comments
 (0)
Failed to load comments.