2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

DevIo: slightly more detailed error message (by Ansgar, forum #23549)

git-svn-id: https://svn.fhem.de/fhem/trunk@5840 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-05-13 07:16:42 +00:00
parent ab211165cd
commit cf805eb120

View File

@ -323,7 +323,7 @@ DevIo_OpenDev($$$)
my $ret = &$initfn($hash);
if($ret) {
DevIo_CloseDev($hash);
Log3 $name, 1, "Cannot init $dev, ignoring it";
Log3 $name, 1, "Cannot init $dev, ignoring it ($name)";
}
}
@ -370,6 +370,7 @@ DevIo_CloseDev($@)
delete($selectlist{"$name.$dev"});
delete($readyfnlist{"$name.$dev"});
delete($hash->{FD});
delete($hash->{EXCEPT_FD});
}
sub
@ -383,7 +384,7 @@ DevIo_Disconnected($)
return if(!defined($hash->{FD})); # Already deleted or RFR
Log3 $name, 1, "$dev disconnected, waiting to reappear";
Log3 $name, 1, "$dev disconnected, waiting to reappear ($name)";
DevIo_CloseDev($hash);
$readyfnlist{"$name.$dev"} = $hash; # Start polling
$hash->{STATE} = "disconnected";