From 6c447c208ec4cbee318e5d45f4da280e85d17461 Mon Sep 17 00:00:00 2001
From: Florian Pose <fp@igh-essen.com>
Date: Fri, 23 Jul 2010 09:30:42 +0200
Subject: [PATCH] Always set drive_no to zero in ethercat tool (TBC).

---
 TODO                     | 1 +
 tool/CommandSoeRead.cpp  | 2 ++
 tool/CommandSoeWrite.cpp | 2 ++
 3 files changed, 5 insertions(+)

diff --git a/TODO b/TODO
index b9a1ea62..81fc8bdb 100644
--- a/TODO
+++ b/TODO
@@ -20,6 +20,7 @@ Version 1.5.0:
     - 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:
 
diff --git a/tool/CommandSoeRead.cpp b/tool/CommandSoeRead.cpp
index 74367e79..1653ce64 100644
--- a/tool/CommandSoeRead.cpp
+++ b/tool/CommandSoeRead.cpp
@@ -90,6 +90,8 @@ void CommandSoeRead::execute(const StringVector &args)
         throwInvalidUsageException(err);
     }
 
+    ioctl.drive_no = 0; // FIXME
+
     try {
         ioctl.idn = parseIdn(args[0]);
     } catch (runtime_error &e) {
diff --git a/tool/CommandSoeWrite.cpp b/tool/CommandSoeWrite.cpp
index ee98b11a..4c542426 100644
--- a/tool/CommandSoeWrite.cpp
+++ b/tool/CommandSoeWrite.cpp
@@ -92,6 +92,8 @@ void CommandSoeWrite::execute(const StringVector &args)
         throwInvalidUsageException(err);
     }
 
+    ioctl.drive_no = 0; // FIXME
+
     try {
         ioctl.idn = parseIdn(args[0]);
     } catch (runtime_error &e) {
-- 
GitLab