[etherlab-dev] [PATCH] ethercat tool xml command

Henry Bausley hbausley at deltatau.com
Tue Apr 22 01:16:45 CEST 2014


You are correct diff was done in the wrong order.


--- /opt/wheezy_rootfs/usr/src/ethercat-1.5.2/tool/CommandXml.cpp
2014-04-21 16:14:32.046012530 -0700
+++ ethercat-1.5.2/tool/CommandXml.cpp	2014-04-18 09:59:24.978013103
-0700
@@ -118,7 +118,7 @@
 
     cout
         << in << "<EtherCATInfo>" << endl
-        << in << "  <!-- Slave " << slave.position << " -->" << endl
+        << in << "  <!-- Slave " << dec << slave.position << " -->" <<
endl
         << in << "  <Vendor>" << endl
         << in << "    <Id>" << slave.vendor_id << "</Id>" << endl
         << in << "  </Vendor>" << endl


On Tue, 2014-04-22 at 10:39 +1200, Gavin Lambert wrote:
> On Saturday, 19 April 2014 06:53, quoth Henry Bausley:
> > When using the command ethercat xml and a junction box ie. EK1152  or
> > likely anything else that does not have syncs the command will report
> > incorrectly the subsequent device's slave position and vendor id in hex.
> [...]
> > -        << in << "  <!-- Slave " << dec << slave.position << " -->" <<
> > endl
> > +        << in << "  <!-- Slave " << slave.position << " -->" << endl
> 
> I think you have the patch reversed.
> 
> 





Outbound scan for Spam or Virus by Barracuda at Delta Tau



More information about the etherlab-dev mailing list