mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 07:16:03 +00:00
Initialized string not set correctly. Corrected
git-svn-id: https://svn.fhem.de/fhem/trunk@3056 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6650be2e7a
commit
6690ebb87e
@ -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";
|
||||
}
|
||||
#
|
||||
|
||||
|
@ -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 = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user