Fixed CoE transfer timeout bug.
authorFlorian Pose <fp@igh-essen.com>
Thu, 17 Jul 2008 10:03:15 +0000
changeset 1112 d11661e1f4de
parent 1111 6aaf6a0c375c
child 1113 4d720feb915d
Fixed CoE transfer timeout bug.
master/fsm_coe.c
--- a/master/fsm_coe.c	Mon Jul 14 12:16:07 2008 +0000
+++ b/master/fsm_coe.c	Thu Jul 17 10:03:15 2008 +0000
@@ -1128,9 +1128,9 @@
                     EC_DBG("Slave %u did not respond to Sdo download request. "
                             "Retrying after %u ms...\n",
                             slave->ring_position, (u32) diff_ms);
-                    // no response; send request datagram again
-                    return;
                 }
+                // no response; send request datagram again
+                return;
             }
         }
         fsm->state = ec_fsm_coe_error;
@@ -1376,9 +1376,9 @@
                     EC_DBG("Slave %u did no respond to Sdo upload request. "
                             "Retrying after %u ms...\n",
                             slave->ring_position, (u32) diff_ms);
-                    // no response; send request datagram again
-                    return;
                 }
+                // no response; send request datagram again
+                return;
             }
         }
         fsm->state = ec_fsm_coe_error;