compatibility fix

git-svn-id: https://svn.fhem.de/fhem/trunk@6524 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-09-09 08:04:41 +00:00
parent 5e72517f11
commit 506be1c612

View File

@@ -236,6 +236,7 @@ HUEDevice_SetParam($$@)
if( $value > 100 ) { $value = 100; }
$cmd = 'pct';
} elsif( !defined($value) && $cmd =~ m/^(\d+)/) {
$value2 = $value;
$value = $1;
$value = 254 if( $value > 254 );
$cmd = 'bri';