2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-14 15:39:12 +00:00

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:
borisneubert 2011-03-06 10:38:56 +00:00
parent e46911de37
commit a3ba3e50a3
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 $params= $IOhash->{fhem}{classDefs}{$classname}{gets}{$cmdname}{params};
my $params= $IOhash->{fhem}{classDefs}{$classname}{sets}{$cmdname}{params};
my %specials= ECMDDevice_DeviceParams2Specials($hash);
# add specials for command
@ -173,7 +173,7 @@ ECMDDevice_Set($@)
my $r = ECMDDevice_AnalyzeCommand($ecmd);
my $v= IOWrite($hash, $r);
$v= $params if($params);
$v= join(" ", @a) if($params);
return ECMDDevice_Changed($hash, $cmdname, $v);

View File

@ -3782,7 +3782,7 @@ Attributes:<br>
</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>
<br><br>
Declares the names of the named parameters that must be present in the