2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

98_LW12.pm: fixed dim error message

git-svn-id: https://svn.fhem.de/fhem/trunk@7259 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2014-12-19 12:29:36 +00:00
parent e6d3b377f3
commit a0d68573ef

View File

@ -344,7 +344,7 @@ sub LW12_Set( $@ ) {
Log3 $name, 3, $msg ;
return( $msg );
} else {
return 'Dim value 0 not allowed!';
return 'Dim value 0 not allowed!' if( $arg[0] == 0);
$hash->{".dim"}->{bri} = $arg[0];
@{$hash->{".bri"}->{channels}} = Color::BrightnessToChannels($hash->{".dim"});
LW12_Write( $hash, "\x{56}" .