Initialized string not set correctly. Corrected

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3056 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig
2013-04-08 18:34:59 +00:00
parent 88fbbc67e3
commit 4a9ca1229e
2 changed files with 4 additions and 4 deletions

View File

@@ -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";
}
#

View File

@@ -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 = "";