Using EC_MAX_PORTS. stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Fri, 03 Mar 2017 16:36:00 +0100
branchstable-1.5
changeset 2672 b9cda70ec8b0
parent 2671 5d7a83195c80
child 2673 459758a800b3
Using EC_MAX_PORTS.
tool/CommandCrc.cpp
--- a/tool/CommandCrc.cpp	Fri Mar 03 16:00:35 2017 +0100
+++ b/tool/CommandCrc.cpp	Fri Mar 03 16:36:00 2017 +0100
@@ -67,7 +67,6 @@
 
 /****************************************************************************/
 
-#define NUM_PORTS (4)
 #define REG_SIZE  (20)
 
 void CommandCrc::execute(const StringVector &args)
@@ -124,13 +123,13 @@
     }
 
     cout << "   |";
-    for (unsigned int port = 0; port < NUM_PORTS; port++) {
+    for (unsigned int port = 0; port < EC_MAX_PORTS; port++) {
         cout << "Port " << port << "         |";
     }
     cout << endl;
 
     cout << "   |";
-    for (unsigned int port = 0; port < NUM_PORTS; port++) {
+    for (unsigned int port = 0; port < EC_MAX_PORTS; port++) {
         cout << "CRC PHY FWD LNK|";
     }
     cout << endl;