2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

FRITZBOX: improve debugging

git-svn-id: https://svn.fhem.de/fhem/trunk@7796 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch 2015-01-31 13:27:34 +00:00
parent 271f779726
commit 8a3e107cda

View File

@ -1084,7 +1084,7 @@ sub FRITZBOX_Readout_Format($$$)
if ($format eq "aldays") {
if ($readout eq "0") {
$readout = "once";
} elsif ($readout eq "127") {
} elsif ($readout >= 127) {
$readout = "daily";
} else {
my $bitStr = $readout;
@ -2091,7 +2091,7 @@ sub FRITZBOX_Open_Connection($)
my $timeout = AttrVal( $name, "telnetTimeOut", "10");
$telnet = new Net::Telnet ( Host=>$host, Port => 23, Timeout=>$timeout, Errmode=>'return', Prompt=>'/# $/');
if (!$telnet) {
$msg = "Could not open telnet connection to $host";
$msg = "Could not open telnet connection to $host: $!";
FRITZBOX_Log $hash, 2, $msg;
$telnet = undef;
return $msg;