summaryrefslogtreecommitdiff
path: root/light
diff options
context:
space:
mode:
authorDemon Singur <demonsingur@gmail.com>2020-01-08 21:58:22 +0100
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:48:54 +0300
commitb6ca13ac464cdbd6f9eb593bc3f99a09d0069985 (patch)
tree20637147f7a8045c036b9dad8df99c7fde80a25b /light
parent8f8b3438983aff15c264397267ab23628b677ca1 (diff)
sdm660-common: light: Set saner ramp values
Change-Id: Idf8053945cb9cfc15d4d401ec0e78953d3f3b051 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'light')
-rw-r--r--light/Light.cpp6
1 files changed, 3 insertions, 3 deletions
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.