Skip to content

Commit

Permalink
Making changes to jsd_inspect_context
Browse files Browse the repository at this point in the history
  • Loading branch information
preston-rogers committed Aug 13, 2024
1 parent 59e7cf5 commit 8c966f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ include(FetchContent)

# Updated 2022-09-18
FetchContent_Declare(soem
GIT_REPOSITORY https://github.com/preston-rogers/SOEM.git
GIT_TAG prestonr-feature-add-wkc-driver-saves
GIT_REPOSITORY https://github.com/OpenEtherCATsociety/SOEM.git
GIT_TAG 26fc5dd8e3c8981b4e8f83d736e691417bebacdb
)
FetchContent_MakeAvailable(soem)

Expand Down
5 changes: 3 additions & 2 deletions src/jsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,14 @@ void jsd_inspect_context(jsd_t* self) {
MSG("Some slaves were not operational.");
if (self->ecx_context.ecaterror) {
MSG("We experienced an ECAT error. When this occurs, error information aught to be saved. "
"Error list displayed below:\n %s", ecx_elist2string(self->ecx_context));
"Errors in error list displayed below:\n");
while(self->ecx_context.ecaterror) MSG("%s\n", ecx_elist2string(&self->ecx_context));
MSG("Went through all errors in the elist stack.\n");
}
else {
MSG("Despite some slaves not being operational, an ECAT error was not experienced.");
}
}

}

void jsd_read(jsd_t* self, int timeout_us) {
Expand Down

0 comments on commit 8c966f1

Please sign in to comment.