mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
Bugfix and some simplification
git-svn-id: https://svn.fhem.de/fhem/trunk@895 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b01b94b82a
commit
00cd0067e7
@ -698,14 +698,11 @@ CUL_HM_Set($@)
|
|||||||
CUL_HM_pushConfig($hash, $id, $dst, 2, $list, $data);
|
CUL_HM_pushConfig($hash, $id, $dst, 2, $list, $data);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
} elsif($cmd =~ m/^matic(...)/) { ####################### By Frank
|
} elsif($cmd eq "matic") { #####################################
|
||||||
my $btna = sprintf "%X", $a[2];
|
# Trigger pre-programmed action in the winmatic. These actions must be
|
||||||
my $lg = length($btna);
|
# programmed via the original software.
|
||||||
my $btnb =" ";
|
|
||||||
if ($lg eq "1"){
|
$sndcmd = sprintf("++B03E%s%s%s40%02X%s",$id, $dst, $id, $a[2], $chn);
|
||||||
$btnb = sprintf("0%s", $btna);
|
|
||||||
}
|
|
||||||
$sndcmd = sprintf("++B03E%s%s%s40%s%s",$id, $dst, $id, $btnb, $chn);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user