1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-04 22:19:38 +00:00

FRITZBOX: bugfix isDoubleWlan

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@9604 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch 2015-10-23 19:02:24 +00:00
parent 204fe30e3b
commit a07c213de7

View File

@ -1,5 +1,5 @@
############################################################### ###############################################################
# $Id$Date: $ # $Id$
# #
# 72_FRITZBOX.pm # 72_FRITZBOX.pm
# #
@ -615,6 +615,7 @@ sub FRITZBOX_Readout_Start($)
if( $interval != 0 ) { if( $interval != 0 ) {
RemoveInternalTimer($hash->{helper}{TimerReadout}); RemoveInternalTimer($hash->{helper}{TimerReadout});
InternalTimer(gettimeofday()+$interval, "FRITZBOX_Readout_Start", $hash->{helper}{TimerReadout}, 1); InternalTimer(gettimeofday()+$interval, "FRITZBOX_Readout_Start", $hash->{helper}{TimerReadout}, 1);
readingsSingleUpdate($hash, "state", "disabled", 1) if AttrVal($name, "disable", 0 ) == 1;
return undef if( AttrVal($name, "disable", 0 ) == 1 ); return undef if( AttrVal($name, "disable", 0 ) == 1 );
} }
@ -1583,13 +1584,16 @@ sub FRITZBOX_Readout_Format($$$)
$readout = "" unless defined $readout; $readout = "" unless defined $readout;
return $readout unless defined $format; return $readout unless defined( $format ) && $format ne "";
return $readout unless $readout ne "" && $format ne "" ; # return $readout unless $readout ne "" && $format ne "" ; #Funktioniert nicht bei $format "01"
if ($format eq "01") { if ($format eq "01" && $readout ne "1") {
$readout = 0 if $readout ne "1"; $readout = 0;
} }
elsif ($format eq "aldays") {
return $readout unless $readout ne "";
if ($format eq "aldays") {
if ($readout eq "0") { if ($readout eq "0") {
$readout = "once"; $readout = "once";
} }