Always set drive_no to zero in ethercat tool (TBC).
--- 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) {