2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

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 b46ca16791
commit 4ce45ff8d7

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";