mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 07:19:24 +00:00
00_ZWDongle.pm: fix get raw
git-svn-id: https://svn.fhem.de/fhem/trunk@8259 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bd34b5f4bd
commit
7292bdf968
@ -297,8 +297,9 @@ ZWDongle_Get($@)
|
||||
|
||||
return "No $type for dummies" if(IsDummy($name));
|
||||
|
||||
ZWDongle_Write($hash, "00", sprintf($gets{$type}, @a));
|
||||
my $re = "^01".substr($gets{$type},0,2); # Start with <01><len><01><CMD>
|
||||
my $out = sprintf($gets{$type}, @a);
|
||||
ZWDongle_Write($hash, "00", $out);
|
||||
my $re = "^01".substr($out,0,2); # Start with <01><len><01><CMD>
|
||||
my ($err, $ret) = ZWDongle_ReadAnswer($hash, "get $name $type", $re);
|
||||
return $err if($err);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user