--- 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