tool/CommandDownload.cpp
changeset 1166 006244d53f68
parent 1157 04d1c950cf9d
child 1184 75cd6681eb08
--- a/tool/CommandDownload.cpp	Mon Jul 28 14:06:03 2008 +0000
+++ b/tool/CommandDownload.cpp	Mon Jul 28 14:28:43 2008 +0000
@@ -100,9 +100,9 @@
     }
     data.slave_position = slaves.front().position;
 
-    if (dataTypeStr != "") { // data type specified
-        if (!(dataType = findDataType(dataTypeStr))) {
-            err << "Invalid data type '" << dataTypeStr << "'!";
+    if (!getDataType().empty()) { // data type specified
+        if (!(dataType = findDataType(getDataType()))) {
+            err << "Invalid data type '" << getDataType() << "'!";
             throwInvalidUsageException(err);
         }
     } else { // no data type specified: fetch from dictionary