2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 20:52:13 +00:00

98_autocreate.pm: replace DevIo_TimeoutRead (Forum #100054)

git-svn-id: https://svn.fhem.de/fhem/trunk@19337 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-05-05 19:44:00 +00:00
parent 12f8e8452d
commit f63aad7c36

View File

@ -624,7 +624,8 @@ CommandUsb($$)
# Send reset (optional) # Send reset (optional)
if(defined($thash->{init})) { if(defined($thash->{init})) {
DevIo_SimpleWrite($hash, $thash->{init}, 0); DevIo_SimpleWrite($hash, $thash->{init}, 0);
DevIo_TimeoutRead($hash, $thash->{timeout} ? $thash->{timeout}:0.5); DevIo_SimpleReadWithTimeout($hash,
$thash->{timeout} ? $thash->{timeout}:0.5);
} }
# Clear the USB buffer # Clear the USB buffer