2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 08:11:44 +00:00

98_Siro.pm:Fix programming mode - wrong number of command repetitions

git-svn-id: https://svn.fhem.de/fhem/trunk@19771 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Byte09 2019-07-03 16:45:56 +00:00
parent dafddd1a14
commit 9eb02f6a0e

View File

@ -400,7 +400,8 @@ sub SendCommand($@) {
Log3( $name, 4,"Siro_sendCommand: args1 - $args[1]") if defined $args[1]; Log3( $name, 4,"Siro_sendCommand: args1 - $args[1]") if defined $args[1];
if ( (defined($args[1]) and $args[1] eq "longstop" )|| (defined $hash->{helper}{progmode} and $hash->{helper}{progmode} eq "on")) #if ( (defined($args[1]) and $args[1] eq "longstop" )|| (defined $hash->{helper}{progmode} and $hash->{helper}{progmode} eq "on"))
if ( (defined($args[1]) and $args[1] eq "longstop" ))
{ {
$SignalRepeats = AttrVal( $name, 'SIRO_signalLongStopRepeats', '15' ); $SignalRepeats = AttrVal( $name, 'SIRO_signalLongStopRepeats', '15' );
} }
@ -409,6 +410,8 @@ sub SendCommand($@) {
$SignalRepeats = AttrVal( $name, 'SIRO_signalRepeats', '10' ); $SignalRepeats = AttrVal( $name, 'SIRO_signalRepeats', '10' );
} }
Log3( $name, 5,"Siro_sendCommand: repeats - $SignalRepeats"); Log3( $name, 5,"Siro_sendCommand: repeats - $SignalRepeats");
$chan = AttrVal( $name, 'SIRO_send_channel', undef ); $chan = AttrVal( $name, 'SIRO_send_channel', undef );