diff --git a/FHEM/99_SUNRISE_EL.pm b/FHEM/99_SUNRISE_EL.pm index 5f1f4d7c2..a6fcc6a6a 100644 --- a/FHEM/99_SUNRISE_EL.pm +++ b/FHEM/99_SUNRISE_EL.pm @@ -76,8 +76,8 @@ sr_alt($$$$$$$$$;$$) } elsif($altit =~ /HORIZON=([\-\+]*[0-9\.]+)/i) { $altit=$1; } else { - $altit=-6; #default - unshift @_, $altit # make altit optional. + unshift @_, $altit; # make altit optional. + $altit=-6; # default } my $seconds = shift;