From cba7422595a1cc30b1ae94abfe9d3310c386409e Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 19 Dec 2010 09:01:08 +0000 Subject: [PATCH] Small fixes, don't want to miss out something git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@773 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/00_CUL.pm | 2 +- FHEM/10_CUL_HM.pm | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/FHEM/00_CUL.pm b/FHEM/00_CUL.pm index 4aa0818aa..1b2c35b90 100755 --- a/FHEM/00_CUL.pm +++ b/FHEM/00_CUL.pm @@ -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 diff --git a/FHEM/10_CUL_HM.pm b/FHEM/10_CUL_HM.pm index 0f2b687f5..e976aaac3 100755 --- a/FHEM/10_CUL_HM.pm +++ b/FHEM/10_CUL_HM.pm @@ -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);