diff --git a/fhem/FHEM/40_RFXCOM.pm b/fhem/FHEM/40_RFXCOM.pm index f8e734985..7d41ac53b 100755 --- a/fhem/FHEM/40_RFXCOM.pm +++ b/fhem/FHEM/40_RFXCOM.pm @@ -239,7 +239,7 @@ RFXCOM_DoInit($) if(defined($attr{$name}) && defined($attr{$name}{"do_not_init"})) { Log 1, "RFXCOM: defined with noinit. Do not send init string to device."; - $hash->{STATE} = "Initialized" if(!$hash->{STATE}); + $hash->{STATE} = "Initialized"; # Reset the counter delete($hash->{XMIT_TIME}); @@ -267,7 +267,7 @@ RFXCOM_DoInit($) return "RFXCOM: Initialization Error %name expected char=0x2c, but char=$char received."; } else { Log 1, "RFXCOM: Init OK"; - $hash->{STATE} = "Initialized" if(!$hash->{STATE}); + $hash->{STATE} = "Initialized"; } # diff --git a/fhem/FHEM/45_TRX.pm b/fhem/FHEM/45_TRX.pm index 2e41a153a..ac8be12c2 100755 --- a/fhem/FHEM/45_TRX.pm +++ b/fhem/FHEM/45_TRX.pm @@ -211,7 +211,7 @@ TRX_DoInit($) if(defined($attr{$name}) && defined($attr{$name}{"do_not_init"})) { Log 1, "TRX: defined with noinit. Do not send init string to device."; - $hash->{STATE} = "Initialized" if(!$hash->{STATE}); + $hash->{STATE} = "Initialized"; # Reset the counter delete($hash->{XMIT_TIME}); @@ -242,7 +242,7 @@ TRX_DoInit($) return "TRX: Initialization Error %name expected char=0x2c, but char=$char received."; } else { Log 1, "TRX: Init OK"; - $hash->{STATE} = "Initialized" if(!$hash->{STATE}); + $hash->{STATE} = "Initialized"; # Analyse result and display it: if ($buf =~ m/^\x0d\x01\x00(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)/) { my $status = "";