ECMDDevice: fixed two errors (set command with params, return value as a reading for set command)

git-svn-id: https://svn.fhem.de/fhem/trunk@848 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
neubert
2011-03-06 10:38:56 +00:00
parent e3f5128c58
commit 16c95f7ec4
2 changed files with 3 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ ECMDDevice_Set($@)
} }
my $ecmd= $IOhash->{fhem}{classDefs}{$classname}{sets}{$cmdname}{cmd}; my $ecmd= $IOhash->{fhem}{classDefs}{$classname}{sets}{$cmdname}{cmd};
my $params= $IOhash->{fhem}{classDefs}{$classname}{gets}{$cmdname}{params}; my $params= $IOhash->{fhem}{classDefs}{$classname}{sets}{$cmdname}{params};
my %specials= ECMDDevice_DeviceParams2Specials($hash); my %specials= ECMDDevice_DeviceParams2Specials($hash);
# add specials for command # add specials for command
@@ -173,7 +173,7 @@ ECMDDevice_Set($@)
my $r = ECMDDevice_AnalyzeCommand($ecmd); my $r = ECMDDevice_AnalyzeCommand($ecmd);
my $v= IOWrite($hash, $r); my $v= IOWrite($hash, $r);
$v= $params if($params); $v= join(" ", @a) if($params);
return ECMDDevice_Changed($hash, $cmdname, $v); return ECMDDevice_Changed($hash, $cmdname, $v);

View File

@@ -3782,7 +3782,7 @@ Attributes:<br>
</li> </li>
<li> <li>
<code>set &lt;name&gt; params &lt;parameter1&gt; [&lt;parameter2&gt; [&lt;parameter3&gt; ... ]]</code> <code>set &lt;name&gt; params &lt;parameter1&gt; [&lt;parameter2&gt; [&lt;parameter3&gt; ... ]]</code><br>
<code>get &lt;name&gt; params &lt;parameter1&gt; [&lt;parameter2&gt; [&lt;parameter3&gt; ... ]]</code> <code>get &lt;name&gt; params &lt;parameter1&gt; [&lt;parameter2&gt; [&lt;parameter3&gt; ... ]]</code>
<br><br> <br><br>
Declares the names of the named parameters that must be present in the Declares the names of the named parameters that must be present in the