diff -r c5d6e28eec91 -r 006244d53f68 tool/CommandDownload.cpp --- 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