mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
DevIo.pm: Wait 0.01s instead of 1s if the first returned 0. (Forum #57806)
git-svn-id: https://svn.fhem.de/fhem/trunk@13865 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5835853407
commit
9ed7626928
@ -64,7 +64,7 @@ DevIo_SimpleRead($)
|
||||
###########
|
||||
# Lets' try again: Some drivers return len(0) on the first read...
|
||||
if(defined($buf) && length($buf) == 0) {
|
||||
$buf = DevIo_SimpleReadWithTimeout($hash, 1);
|
||||
$buf = DevIo_SimpleReadWithTimeout($hash, 0.01); # Forum #57806
|
||||
}
|
||||
|
||||
if(!defined($buf) || length($buf) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user