Skip to content
Snippets Groups Projects
Commit aa567388 authored by Florian Pose's avatar Florian Pose
Browse files

Break domain output data after 16 bytes.

parent 5814134c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment