00_ZWDongle: clear patch (Forum #35126)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8643 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -439,7 +439,7 @@ ZWDongle_Clear($)
|
||||
# Clear the pipe
|
||||
$hash->{RA_Timeout} = 0.3;
|
||||
for(;;) {
|
||||
my ($err, undef) = ZWDongle_ReadAnswer($hash, "Clear", undef);
|
||||
my ($err, undef) = ZWDongle_ReadAnswer($hash, "Clear", "wontmatch");
|
||||
last if($err && $err =~ m/^Timeout/);
|
||||
}
|
||||
delete($hash->{RA_Timeout});
|
||||
|
||||
Reference in New Issue
Block a user