01_FHEMWEB.pm: enable negative slider values

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6812 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-10-26 17:12:41 +00:00
parent 98e0cc61ab
commit 0afd672beb

View File

@ -2439,7 +2439,7 @@ FW_sliderFn($$$$$)
{
my ($FW_wname, $d, $FW_room, $cmd, $values) = @_;
return undef if($values !~ m/^slider,([\d.]*),([\d.]*),([\d.]*)(,1)?$/);
return undef if($values !~ m/^slider,([-\d.]*),([-\d.]*),([-\d.]*)(,1)?$/);
return "" if($cmd =~ m/ /); # webCmd pct 30 should generate a link
my ($min,$stp, $max, $flt) = ($1, $2, $3, $4);
$flt = ($flt ? 1 : 0);