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);
|
||||
return;
|
||||
|
||||
} elsif($cmd =~ m/^matic(...)/) { ####################### By Frank
|
||||
my $btna = sprintf "%X", $a[2];
|
||||
my $lg = length($btna);
|
||||
my $btnb =" ";
|
||||
if ($lg eq "1"){
|
||||
$btnb = sprintf("0%s", $btna);
|
||||
}
|
||||
$sndcmd = sprintf("++B03E%s%s%s40%s%s",$id, $dst, $id, $btnb, $chn);
|
||||
} elsif($cmd eq "matic") { #####################################
|
||||
# Trigger pre-programmed action in the winmatic. These actions must be
|
||||
# programmed via the original software.
|
||||
|
||||
$sndcmd = sprintf("++B03E%s%s%s40%02X%s",$id, $dst, $id, $a[2], $chn);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user