Always set drive_no to zero in ethercat tool (TBC).
authorFlorian Pose <fp@igh-essen.com>
Fri, 23 Jul 2010 09:30:42 +0200
changeset 1953 968a531e5a89
parent 1952 7d9fb723fc4b
child 1954 a108f0805a0b
Always set drive_no to zero in ethercat tool (TBC).
TODO
tool/CommandSoeRead.cpp
tool/CommandSoeWrite.cpp
--- a/TODO	Tue Jul 20 10:52:31 2010 +0200
+++ b/TODO	Fri Jul 23 09:30:42 2010 +0200
@@ -20,6 +20,7 @@
     - Output error after usage.
     - Implement ranges for slaves and domains.
 * Fix casting away constness during expected WC calculation.
+* Include SoE drive_no in ethercat tool.
 
 Future issues:
 
--- a/tool/CommandSoeRead.cpp	Tue Jul 20 10:52:31 2010 +0200
+++ b/tool/CommandSoeRead.cpp	Fri Jul 23 09:30:42 2010 +0200
@@ -90,6 +90,8 @@
         throwInvalidUsageException(err);
     }
 
+    ioctl.drive_no = 0; // FIXME
+
     try {
         ioctl.idn = parseIdn(args[0]);
     } catch (runtime_error &e) {
--- a/tool/CommandSoeWrite.cpp	Tue Jul 20 10:52:31 2010 +0200
+++ b/tool/CommandSoeWrite.cpp	Fri Jul 23 09:30:42 2010 +0200
@@ -92,6 +92,8 @@
         throwInvalidUsageException(err);
     }
 
+    ioctl.drive_no = 0; // FIXME
+
     try {
         ioctl.idn = parseIdn(args[0]);
     } catch (runtime_error &e) {