mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
77_SMASTP: Fixed problem with unitialized interval (Froum msg473270)
git-svn-id: https://svn.fhem.de/fhem/trunk@11815 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
426a119735
commit
295058da5b
@ -350,7 +350,11 @@ sub SMASTP_GetStatus($)
|
|||||||
{
|
{
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
$hash->{INTERVAL} = $attr{$name}{"interval"};
|
if (defined($attr{$name}{"interval"})) {
|
||||||
|
$hash->{INTERVAL} = $attr{$name}{"interval"};
|
||||||
|
} else {
|
||||||
|
$hash->{INTERVAL} = 60;
|
||||||
|
}
|
||||||
|
|
||||||
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
|
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user