mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
Small fixes, don't want to miss out something
git-svn-id: https://svn.fhem.de/fhem/trunk@773 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4635068644
commit
5ad11ebc4e
@ -220,7 +220,7 @@ CUL_Set($@)
|
||||
CUL_SimpleWrite($hash, "W0F$f2");
|
||||
CUL_SimpleWrite($hash, "W10$f1");
|
||||
CUL_SimpleWrite($hash, "W11$f0");
|
||||
CUL_SimpleWrite($hash, $hash->{initString}); # Will reprogram the CC1101
|
||||
CUL_SimpleWrite($hash, $hash->{initString}); # Will reprogram the CC1101
|
||||
|
||||
} elsif($type eq "bWidth") { ###################################### KHz
|
||||
|
||||
|
@ -217,13 +217,12 @@ CUL_HM_Parse($$)
|
||||
} elsif(!$st) { # Will trigger unknown
|
||||
;
|
||||
|
||||
} elsif("$channel$msgtype" eq "8002") { #### Ack
|
||||
} elsif($cm eq "8002") { #### Ack
|
||||
|
||||
if($shash->{cmdStack}) {
|
||||
CUL_HM_SendCmd($shash, shift @{$shash->{cmdStack}}, 1, 1);
|
||||
delete($shash->{cmdStack}) if(!@{$shash->{cmdStack}});
|
||||
}
|
||||
|
||||
push @event, "";
|
||||
|
||||
} elsif($st eq "switch" || ############################################
|
||||
@ -235,7 +234,7 @@ CUL_HM_Parse($$)
|
||||
my $val = hex($2)/2;
|
||||
$val = ($val == 100 ? "on" : ($val == 0 ? "off" : "$val %"));
|
||||
my $msg = "unknown";
|
||||
$msg = "ackedCmd" if($lt =~ m/0.01/);
|
||||
$msg = "deviceMsg" if($lt =~ m/0.01/);
|
||||
$msg = "powerOn" if($lt =~ m/0600/);
|
||||
push @event, "$msg:$val";
|
||||
push @event, "state:$val" if(!$isack);
|
||||
|
Loading…
x
Reference in New Issue
Block a user