98_LW12.pm: fixed dim error message

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

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}" .