Removed faulty polling before device->open().
authorFlorian Pose <fp@igh-essen.com>
Thu, 22 Feb 2007 09:19:02 +0000
changeset 590 5801d4a4ff7d
parent 589 492148a329e7
child 591 2b949dcba32b
Removed faulty polling before device->open().
master/device.c
--- a/master/device.c	Wed Feb 21 13:43:47 2007 +0000
+++ b/master/device.c	Thu Feb 22 09:19:02 2007 +0000
@@ -156,8 +156,6 @@
 
 int ec_device_open(ec_device_t *device /**< EtherCAT device */)
 {
-    unsigned int i;
-
     if (!device->dev) {
         EC_ERR("No net_device to open!\n");
         return -1;
@@ -168,9 +166,6 @@
         return 0;
     }
 
-    // device could have received frames before
-    for (i = 0; i < 4; i++) ec_device_poll(device);
-
     device->link_state = 0;
     device->tx_count = 0;
     device->rx_count = 0;