mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
FULLY: Removed log messages
git-svn-id: https://svn.fhem.de/fhem/trunk@22994 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6ecd092f64
commit
210b268745
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 89_FULLY: Removed log messages
|
||||
- bugfix: 32_withings: fixed database write for sleepstate: light
|
||||
- feature: 98_WeekdayTimer: Allow flexible state values when delayed.
|
||||
- feature: 89_FULLY: Several new commands. Now using JSON.
|
||||
|
@ -1,6 +1,6 @@
|
||||
##############################################################################
|
||||
#
|
||||
# 89_FULLY.pm 2.0
|
||||
# 89_FULLY.pm 2.01
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
@ -40,7 +40,7 @@ sub FULLY_Decrypt ($);
|
||||
sub FULLY_Ping ($$);
|
||||
sub FULLY_SetPolling ($$;$);
|
||||
|
||||
my $FULLY_VERSION = '2.0';
|
||||
my $FULLY_VERSION = '2.01';
|
||||
|
||||
# Timeout for Fully requests
|
||||
my $FULLY_TIMEOUT = 5;
|
||||
@ -223,16 +223,18 @@ sub FULLY_SetPolling ($$;$)
|
||||
|
||||
if ($mode == 0 || $interval == 0) {
|
||||
RemoveInternalTimer ($hash, 'FULLY_UpdateDeviceInfo');
|
||||
$hash->{nextUpdate} = 'off';
|
||||
FULLY_Log ($hash, 2, "Polling deactivated");
|
||||
FULLY_Log ($hash, 2, "Polling deactivated")
|
||||
if (!exists($hash->{nextUpdate}) || $hash->{nextUpdate} ne 'off');
|
||||
$hash->{nextUpdate} = 'off';
|
||||
}
|
||||
elsif ($mode == 1) {
|
||||
RemoveInternalTimer ($hash, 'FULLY_UpdateDeviceInfo');
|
||||
$interval = $FULLY_POLL_RANGE[0] if ($interval < $FULLY_POLL_RANGE[0]);
|
||||
$interval = $FULLY_POLL_RANGE[1] if ($interval > $FULLY_POLL_RANGE[1]);
|
||||
FULLY_Log ($hash, 2, "Polling activated")
|
||||
if (exists($hash->{nextUpdate}) && $hash->{nextUpdate} eq 'off');
|
||||
$hash->{nextUpdate} = strftime "%d.%m.%Y %H:%M:%S", localtime (time+$interval);
|
||||
InternalTimer (gettimeofday()+$interval, "FULLY_UpdateDeviceInfo", $hash, 0);
|
||||
FULLY_Log ($hash, 2, "Polling activated");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user