Timeouts set for various uploads in FSM COE MAP
authorRichard Hacker <ha@igh-essen.com>
Thu, 19 Jun 2008 13:52:12 +0000
changeset 1044 0d73427db362
parent 1043 2abea4233a6d
child 1045 c4fd73507076
Timeouts set for various uploads in FSM COE MAP
master/fsm_coe_map.c
--- a/master/fsm_coe_map.c	Thu Jun 19 13:35:34 2008 +0000
+++ b/master/fsm_coe_map.c	Thu Jun 19 13:52:12 2008 +0000
@@ -247,7 +247,7 @@
     if (fsm->sync_subindex <= fsm->sync_subindices) {
         ec_sdo_request_address(&fsm->request, fsm->sync_sdo_index,
                 fsm->sync_subindex);
-        fsm->request.response_timeout = 0;
+        fsm->request.response_timeout = 5000;
         ecrt_sdo_request_read(&fsm->request);
         fsm->state = ec_fsm_coe_map_state_pdo;
         ec_fsm_coe_transfer(fsm->fsm_coe, fsm->slave, &fsm->request);
@@ -314,7 +314,7 @@
     list_add_tail(&fsm->pdo->list, &fsm->pdos.list);
 
     ec_sdo_request_address(&fsm->request, fsm->pdo->index, 0);
-    fsm->request.response_timeout = 0;
+    fsm->request.response_timeout = 5000;
     ecrt_sdo_request_read(&fsm->request);
     fsm->state = ec_fsm_coe_map_state_pdo_entry_count;
     ec_fsm_coe_transfer(fsm->fsm_coe, fsm->slave, &fsm->request);
@@ -370,7 +370,7 @@
 {
     if (fsm->pdo_subindex <= fsm->pdo_subindices) {
         ec_sdo_request_address(&fsm->request, fsm->pdo->index, fsm->pdo_subindex);
-        fsm->request.response_timeout = 0;
+        fsm->request.response_timeout = 5000;
         ecrt_sdo_request_read(&fsm->request);
         fsm->state = ec_fsm_coe_map_state_pdo_entry;
         ec_fsm_coe_transfer(fsm->fsm_coe, fsm->slave, &fsm->request);