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:
rudolfkoenig
2015-06-10 10:06:12 +00:00
parent 49a882841e
commit 010338c1f1
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

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