Fixed wrong condition for min/max brightness

Signed-off-by: Or Sharir <or@sharir.org>