mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-18 09:07:24 +08:00
Fixed hex display of slave position; thanks to Henry Bausley.
This commit is contained in:
+6
-4
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH
|
||||
* Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH
|
||||
*
|
||||
* This file is part of the IgH EtherCAT Master.
|
||||
*
|
||||
@@ -118,7 +118,7 @@ void CommandXml::generateSlaveXml(
|
||||
|
||||
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
|
||||
@@ -142,9 +142,11 @@ void CommandXml::generateSlaveXml(
|
||||
m.getSync(&sync, slave.position, i);
|
||||
|
||||
cout
|
||||
<< in << " <Sm Enable=\"" << dec << (unsigned int) sync.enable
|
||||
<< in << " <Sm Enable=\""
|
||||
<< dec << (unsigned int) sync.enable
|
||||
<< "\" StartAddress=\"#x" << hex << sync.physical_start_address
|
||||
<< "\" ControlByte=\"#x" << hex << (unsigned int) sync.control_register
|
||||
<< "\" ControlByte=\"#x"
|
||||
<< hex << (unsigned int) sync.control_register
|
||||
<< "\" DefaultSize=\"" << dec << sync.default_size
|
||||
<< "\" />" << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user