Break domain output data after 16 bytes.

This commit is contained in:
Florian Pose 2008-07-07 08:06:27 +00:00
parent 9d6dad936a
commit 5cc3194ee8
3 changed files with 3 additions and 1 deletions

1
TODO
View File

@ -20,7 +20,6 @@ Version 1.4.0:
* Distributed clocks.
* Fix datagram errors on application loading/unloading.
* Race in jiffies frame timeout?
* Break 'ethercat domain' output at 16 bytes.
Future issues:

View File

@ -1238,6 +1238,8 @@ void Master::showDomain(unsigned int domainIndex)
cout << " " << hex << setfill('0');
for (j = 0; j < fmmu.data_size; j++) {
if (j && !(j % BreakAfterBytes))
cout << endl << " ";
cout << setw(2)
<< (unsigned int) *(processData + dataOffset + j) << " ";
}

View File

@ -74,6 +74,7 @@ class Master
void showDetailedConfigs();
void listConfigs();
void outputDomainData(unsigned int);
enum {BreakAfterBytes = 16};
void showDomain(unsigned int);
void listSlavePdos(uint16_t, bool = false);
void listSlaveSdos(uint16_t, bool = false);