Skip to content
Snippets Groups Projects
Commit 1a487c4e authored by Florian Pose's avatar Florian Pose
Browse files

Removed faulty polling before device->open().

parent 4af320c5
No related branches found
No related tags found
No related merge requests found
...@@ -156,8 +156,6 @@ void ec_device_detach(ec_device_t *device /**< EtherCAT device */) ...@@ -156,8 +156,6 @@ void ec_device_detach(ec_device_t *device /**< EtherCAT device */)
int ec_device_open(ec_device_t *device /**< EtherCAT device */) int ec_device_open(ec_device_t *device /**< EtherCAT device */)
{ {
unsigned int i;
if (!device->dev) { if (!device->dev) {
EC_ERR("No net_device to open!\n"); EC_ERR("No net_device to open!\n");
return -1; return -1;
...@@ -168,9 +166,6 @@ int ec_device_open(ec_device_t *device /**< EtherCAT device */) ...@@ -168,9 +166,6 @@ int ec_device_open(ec_device_t *device /**< EtherCAT device */)
return 0; return 0;
} }
// device could have received frames before
for (i = 0; i < 4; i++) ec_device_poll(device);
device->link_state = 0; device->link_state = 0;
device->tx_count = 0; device->tx_count = 0;
device->rx_count = 0; device->rx_count = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment