Skip to content

Commit

Permalink
#7
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed May 25, 2024
1 parent d79e775 commit 192ebc6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/eez/flow/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,10 @@ void writeLogMessage(const char *str, size_t len) {
}

void logInfo(FlowState *flowState, unsigned componentIndex, const char *message) {
#if defined(EEZ_FOR_LVGL)
LV_LOG_USER("EEZ-FLOW: %s", message);
#endif

if (isSubscribedTo(MESSAGE_TO_DEBUGGER_LOG)) {
char buffer[256];
snprintf(buffer, sizeof(buffer), "%d\t%d\t%d\t%d\t",
Expand Down
4 changes: 4 additions & 0 deletions src/eez/flow/private.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,10 @@ void throwError(FlowState *flowState, int componentIndex, const char *errorMessa
printf("throwError: %s\n", errorMessage);
#endif

#if defined(EEZ_FOR_LVGL)
LV_LOG_ERROR("EEZ-FLOW error: %s", errorMessage);
#endif

if (component->errorCatchOutput != -1) {
propagateValue(
flowState,
Expand Down

0 comments on commit 192ebc6

Please sign in to comment.