98_Siro.pm:Bugfix groupdevices with channel 0

git-svn-id: https://svn.fhem.de/fhem/trunk@15252 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Byte09
2017-10-14 15:03:23 +00:00
parent b93de80fc3
commit 6e6205b3bb

View File

@@ -1,4 +1,4 @@
#################################################################
# $Id$
#
# Siro module for FHEM
@@ -1366,7 +1366,7 @@ my $testtimestart = gettimeofday();
Log3($name,1,"Siro_Set: nodrive -> $nodrive");
if ($ondirekttime eq "0" || $offdirekttime eq "0" || $nodrive eq "true") # Fehler division durch 0 abfanken bei ungesetzten attributen
if (($ondirekttime eq "0" || $offdirekttime eq "0" || $nodrive eq "true") && $testchannel ne "0" ) # Fehler division durch 0 abfanken bei ungesetzten attributen
{
Log3($name,1,"Siro_Set: Positionsanfahrt ohne gesetzte Attribute , aktion nicht m<>glich -> abbruch");
return "Positionsanfahrt ohne gesetzte Attribute time_to_open und time_to_close nicht moeglich";