[deconz] fix brightness factor (#8956)

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
J-N-K 2020-11-04 23:32:14 +01:00 committed by GitHub
parent 0722bd71f5
commit 4342bb1cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -131,5 +131,5 @@ public class BindingConstants {
public static final double HUE_FACTOR = 65535 / 360.0;
public static final int BRIGHTNESS_MIN = 0;
public static final int BRIGHTNESS_MAX = 254;
public static final double BRIGHTNESS_FACTOR = BRIGHTNESS_MAX / PercentType.HUNDRED.intValue();
public static final double BRIGHTNESS_FACTOR = BRIGHTNESS_MAX / PercentType.HUNDRED.doubleValue();
}