From bb54a2e1198486a7a50e43ee8417d360bba1e189 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Fri, 3 Mar 2017 16:36:00 +0100 Subject: [PATCH] Using EC_MAX_PORTS. --- tool/CommandCrc.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tool/CommandCrc.cpp b/tool/CommandCrc.cpp index 8903f45a..4edd6cfc 100644 --- a/tool/CommandCrc.cpp +++ b/tool/CommandCrc.cpp @@ -67,7 +67,6 @@ string CommandCrc::helpString(const string &binaryBaseName) const /****************************************************************************/ -#define NUM_PORTS (4) #define REG_SIZE (20) void CommandCrc::execute(const StringVector &args) @@ -124,13 +123,13 @@ void CommandCrc::execute(const StringVector &args) } 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;