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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@848 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
neubert
2011-03-06 10:38:56 +00:00
parent 79bb087d19
commit efc272a863
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