Do not output CoE retries.
authorFlorian Pose <fp@igh-essen.com>
Tue, 26 Jan 2010 10:17:44 +0100
changeset 1791 27030c6b2de3
parent 1790 c4e3ee5632b2
child 1792 3eb466e9bad5
Do not output CoE retries.
master/fsm_coe.c
--- a/master/fsm_coe.c	Tue Jan 26 10:15:59 2010 +0100
+++ b/master/fsm_coe.c	Tue Jan 26 10:17:44 2010 +0100
@@ -49,6 +49,8 @@
 #define EC_COE_DOWN_SEG_REQ_HEADER_SIZE  3
 #define EC_COE_DOWN_SEG_MIN_DATA_SIZE    7
 
+#define DEBUG_RETRIES 0
+
 /*****************************************************************************/
 
 void ec_fsm_coe_dict_start(ec_fsm_coe_t *);
@@ -1213,11 +1215,13 @@
             unsigned long diff_ms =
                 (jiffies - fsm->request->jiffies_sent) * 1000 / HZ;
             if (diff_ms < fsm->request->response_timeout) {
+#if DEBUG_RETRIES
                 if (fsm->slave->master->debug_level) {
                     EC_DBG("Slave %u did not respond to SDO download request. "
                             "Retrying after %u ms...\n",
                             slave->ring_position, (u32) diff_ms);
                 }
+#endif
                 // no response; send request datagram again
                 return;
             }
@@ -1706,11 +1710,13 @@
             unsigned long diff_ms =
                 (jiffies - fsm->request->jiffies_sent) * 1000 / HZ;
             if (diff_ms < fsm->request->response_timeout) {
+#if DEBUG_RETRIES
                 if (fsm->slave->master->debug_level) {
                     EC_DBG("Slave %u did not respond to SDO upload request. "
                             "Retrying after %u ms...\n",
                             slave->ring_position, (u32) diff_ms);
                 }
+#endif
                 // no response; send request datagram again
                 return;
             }