00_CUL.pm/00_ZWDongle.pm: No dispatch in readAnswer if !$init_done (Forum #36040)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8726 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -547,7 +547,7 @@ CUL_ReadAnswer($$$$)
|
||||
(undef, $line) = CUL_prefix(0, $ohash, $line); # Delete prefix
|
||||
if($regexp && $line !~ m/$regexp/) {
|
||||
$line =~ s/[\n\r]+//g;
|
||||
CUL_Parse($ohash, $hash, $ohash->{NAME}, $line);
|
||||
CUL_Parse($ohash, $hash, $ohash->{NAME}, $line) if($init_done);
|
||||
$mculdata = $hash->{PARTIAL};
|
||||
} else {
|
||||
return (undef, $line);
|
||||
|
||||
@@ -676,7 +676,7 @@ ZWDongle_Read($@)
|
||||
|
||||
last if(defined($local) && (!defined($regexp) || ($msg =~ m/$regexp/)));
|
||||
$hash->{PARTIAL} = $data; # Recursive call by ZWave get, Forum #37418
|
||||
ZWDongle_Parse($hash, $name, $msg);
|
||||
ZWDongle_Parse($hash, $name, $msg) if($init_done);
|
||||
|
||||
$data = $hash->{PARTIAL};
|
||||
$msg = undef;
|
||||
|
||||
Reference in New Issue
Block a user