Skip to content

Commit

Permalink
Added timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
preston-rogers committed Aug 13, 2024
1 parent 261e54f commit 1fd40b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/device/jsd_minimal_example_el3602.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int main() {
jsd_set_slave_config(jsd, slave_id, my_config);

// Slave configuration must come before initialization
if (!jsd_init(jsd, "eth9", 1)) {
if (!jsd_init(jsd, "eth9", 1, EC_TIMEOUTRET)) {
ERROR("Could not init jsd");
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion test/jsd_test_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void sds_run(single_device_server_t* self, char* device_name, char* filename) {

uint32_t sds_iter = 0;

if (!jsd_init(self->jsd, device_name, 1)) {
if (!jsd_init(self->jsd, device_name, 1, EC_TIMEOUTRET)) {
ERROR("Could not init jsd");
return;
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/jsd_soem_init_close_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main(int argc, char* argv[]) {

jsd_t* jsd = jsd_alloc();

if (!jsd_init(jsd, argv[1], 1)) {
if (!jsd_init(jsd, argv[1], 1, EC_TIMEOUTRET)) {
ERROR("Could not init jsd");
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/jsd_egd_tlc_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ int main(int argc, char* argv[]) {
jsd_set_slave_config(jsd, slave_id, my_config);

// slave configuration must come before initialization
if (!jsd_init(jsd, ifname, 1)) {
if (!jsd_init(jsd, ifname, 1, EC_TIMEOUTRET)) {
ERROR("Could not init jsd");
return 0;
}
Expand Down

0 comments on commit 1fd40b8

Please sign in to comment.