2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

Exclude space commands from slider

git-svn-id: https://svn.fhem.de/fhem/trunk@3111 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-04-24 09:56:25 +00:00
parent f10866c48d
commit 968cf55cf6

View File

@ -2456,7 +2456,7 @@ FW_sliderFn($$$)
{ {
my ($FW_wname, $d, $FW_room, $cmd, $values) = @_; my ($FW_wname, $d, $FW_room, $cmd, $values) = @_;
return undef if($values !~ m/^slider,(.*),(.*),(.*)$/); return undef if($values !~ m/^slider,(.*),(.*),(.*)$/ || $cmd =~ m/ /);
my ($min,$stp, $max) = ($1, $2, $3); my ($min,$stp, $max) = ($1, $2, $3);
my $srf = $FW_room ? "&room=$FW_room" : ""; my $srf = $FW_room ? "&room=$FW_room" : "";
my $cv = ReadingsVal($d, $cmd, Value($d)); my $cv = ReadingsVal($d, $cmd, Value($d));