fixed 'ethercat eoe' command: interchanged rx/tx bytes/rates
authorMartin Troxler <ch1010277@ch10pc446>
Thu, 16 Dec 2010 12:41:16 +0100
changeset 2023 da133ec36c3a
parent 2022 393e7aef6706
child 2024 96e2ae6cce95
fixed 'ethercat eoe' command: interchanged rx/tx bytes/rates
master/cdev.c
--- a/master/cdev.c	Thu Dec 16 12:31:38 2010 +0100
+++ b/master/cdev.c	Thu Dec 16 12:41:16 2010 +0100
@@ -1617,10 +1617,10 @@
     }
     snprintf(data.name, EC_DATAGRAM_NAME_SIZE, eoe->dev->name);
     data.open = eoe->opened;
-    data.rx_bytes = eoe->stats.tx_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_bytes = eoe->stats.rx_bytes;
-    data.tx_rate = eoe->tx_rate;
     data.tx_queued_frames = eoe->tx_queued_frames;
     data.tx_queue_size = eoe->tx_queue_size;