Skip to content

Commit 1fd40b8

Browse files
Added timeout
1 parent 261e54f commit 1fd40b8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/device/jsd_minimal_example_el3602.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int main() {
2323
jsd_set_slave_config(jsd, slave_id, my_config);
2424

2525
// Slave configuration must come before initialization
26-
if (!jsd_init(jsd, "eth9", 1)) {
26+
if (!jsd_init(jsd, "eth9", 1, EC_TIMEOUTRET)) {
2727
ERROR("Could not init jsd");
2828
return 0;
2929
}

test/jsd_test_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void sds_run(single_device_server_t* self, char* device_name, char* filename) {
103103

104104
uint32_t sds_iter = 0;
105105

106-
if (!jsd_init(self->jsd, device_name, 1)) {
106+
if (!jsd_init(self->jsd, device_name, 1, EC_TIMEOUTRET)) {
107107
ERROR("Could not init jsd");
108108
return;
109109
}

test/unit/jsd_soem_init_close_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main(int argc, char* argv[]) {
1212

1313
jsd_t* jsd = jsd_alloc();
1414

15-
if (!jsd_init(jsd, argv[1], 1)) {
15+
if (!jsd_init(jsd, argv[1], 1, EC_TIMEOUTRET)) {
1616
ERROR("Could not init jsd");
1717
return 0;
1818
}

tools/jsd_egd_tlc_tty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ int main(int argc, char* argv[]) {
151151
jsd_set_slave_config(jsd, slave_id, my_config);
152152

153153
// slave configuration must come before initialization
154-
if (!jsd_init(jsd, ifname, 1)) {
154+
if (!jsd_init(jsd, ifname, 1, EC_TIMEOUTRET)) {
155155
ERROR("Could not init jsd");
156156
return 0;
157157
}

0 commit comments

Comments
 (0)