Break domain output data after 16 bytes.
This commit is contained in:
parent
9d6dad936a
commit
5cc3194ee8
1
TODO
1
TODO
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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) << " ";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue