From 2fcb8f90795035f78d67dbbb618d333da5cb40d3 Mon Sep 17 00:00:00 2001 From: Martin Troxler Date: Thu, 16 Dec 2010 12:41:16 +0100 Subject: [PATCH] fixed 'ethercat eoe' command: interchanged rx/tx bytes/rates --- master/cdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/master/cdev.c b/master/cdev.c index 3017eb27..37958374 100644 --- a/master/cdev.c +++ b/master/cdev.c @@ -1617,10 +1617,10 @@ int ec_cdev_ioctl_eoe_handler( } snprintf(data.name, EC_DATAGRAM_NAME_SIZE, eoe->dev->name); data.open = eoe->opened; - data.rx_bytes = eoe->stats.tx_bytes; - data.rx_rate = eoe->tx_rate; - data.tx_bytes = eoe->stats.rx_bytes; + data.tx_bytes = eoe->stats.tx_bytes; data.tx_rate = eoe->tx_rate; + data.rx_bytes = eoe->stats.rx_bytes; + data.rx_rate = eoe->tx_rate; data.tx_queued_frames = eoe->tx_queued_frames; data.tx_queue_size = eoe->tx_queue_size;