mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-05 19:39:50 +08:00
Using EC_MAX_PORTS.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user