From b6ca13ac464cdbd6f9eb593bc3f99a09d0069985 Mon Sep 17 00:00:00 2001 From: Demon Singur Date: Wed, 8 Jan 2020 21:58:22 +0100 Subject: sdm660-common: light: Set saner ramp values Change-Id: Idf8053945cb9cfc15d4d401ec0e78953d3f3b051 Signed-off-by: Davide Garberi --- light/Light.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'light/Light.cpp') diff --git a/light/Light.cpp b/light/Light.cpp index 7ab0d99..e42588d 100644 --- a/light/Light.cpp +++ b/light/Light.cpp @@ -42,15 +42,15 @@ namespace implementation { /* * 8 duty percent steps. */ -#define RAMP_STEPS 15 +#define RAMP_STEPS 8 /* * Each step will stay on for 50ms by default. */ -#define RAMP_STEP_DURATION 150 +#define RAMP_STEP_DURATION 50 /* * Each value represents a duty percent (0 - 100) for the led pwm. */ -static int32_t BRIGHTNESS_RAMP[RAMP_STEPS] = {0, 12, 25, 37, 50, 72, 85, 100, 85, 72, 50, 37, 25, 12, 0}; +static int32_t BRIGHTNESS_RAMP[RAMP_STEPS] = {0, 12, 25, 37, 50, 72, 85, 100}; /* * Write value to path and close file. -- cgit v1.2.3