mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
98e0cc61ab
commit
0afd672beb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user