mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 23:14:10 +00:00
98_RandomTimer: supress warning 'experimental::smartmatch'
git-svn-id: https://svn.fhem.de/fhem/trunk@11188 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
87b7b5d9a5
commit
970f6e5962
@ -28,6 +28,8 @@ package main;
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
no if $] >= 5.017011, warnings => 'experimental::smartmatch';
|
||||||
|
|
||||||
# use IO::Socket;
|
# use IO::Socket;
|
||||||
use Time::HiRes qw(gettimeofday);
|
use Time::HiRes qw(gettimeofday);
|
||||||
use Time::Local 'timelocal_nocheck';
|
use Time::Local 'timelocal_nocheck';
|
||||||
@ -219,7 +221,7 @@ sub RandomTimer_stopTimeReached($) {
|
|||||||
return ( time()>$hash->{helper}{stopTime} );
|
return ( time()>$hash->{helper}{stopTime} );
|
||||||
}
|
}
|
||||||
########################################################################
|
########################################################################
|
||||||
sub RandomTimer_setActive() {
|
sub RandomTimer_setActive($$) {
|
||||||
my ($hash, $value) = @_;
|
my ($hash, $value) = @_;
|
||||||
$hash->{helper}{active} = $value;
|
$hash->{helper}{active} = $value;
|
||||||
readingsSingleUpdate ($hash, "active", $value, 1);
|
readingsSingleUpdate ($hash, "active", $value, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user