From 7cce5ec6aeac5328249f060b49ab0a0c21a2a7f3 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Thu, 1 Sep 2022 13:48:42 +0200 Subject: [PATCH] Fixed downloading SDOs via stdin (-). --- tool/CommandDownload.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tool/CommandDownload.cpp b/tool/CommandDownload.cpp index b69ef094..0b468eac 100644 --- a/tool/CommandDownload.cpp +++ b/tool/CommandDownload.cpp @@ -1,8 +1,6 @@ /***************************************************************************** * - * $Id$ - * - * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH + * Copyright (C) 2006-2022 Florian Pose, Ingenieurgemeinschaft IgH * * This file is part of the IgH EtherCAT Master. * @@ -184,8 +182,7 @@ void CommandDownload::execute(const StringVector &args) throwCommandException(e.what()); } catch (ios::failure &e) { delete [] sdo_data; - err << "Invalid value argument '" << args[2] - << "' for type '" << dataType->name << "'!"; + err << "Invalid value for type '" << dataType->name << "'!"; throwInvalidUsageException(err); } @@ -207,7 +204,7 @@ void CommandDownload::execute(const StringVector &args) throwCommandException(e.what()); } catch (ios::failure &e) { delete [] sdo_data; - err << "Invalid value argument '" << args[2] + err << "Invalid value argument '" << args[valueIndex] << "' for type '" << dataType->name << "'!"; throwInvalidUsageException(err); }