summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2020-01-08 22:51:07 +0100
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:48:54 +0300
commit22968fdc5dd65b6ef62ef9d98c8f08a76b232a6e (patch)
treed20fe494ee8abede5b47aa564d9a48b8700e6a05
parent21b901633610c76ddbf8489b0d9569833a27e219 (diff)
sdm660-common: light: Set blink as last parameter
* Setting it earlier brings the device to often not show the led light at all Change-Id: I2663611241f7db571625e25694ebc77601bde5f6
-rw-r--r--light/Light.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/light/Light.cpp b/light/Light.cpp
index d0ba5d6..35ddfd1 100644
--- a/light/Light.cpp
+++ b/light/Light.cpp
@@ -146,12 +146,12 @@ static void setNotification(const LightState& state) {
}
/* White */
- set(WHITE BLINK, 1);
set(WHITE START_IDX, 0 * RAMP_STEPS);
set(WHITE DUTY_PCTS, getScaledRamp(whiteBrightness));
set(WHITE PAUSE_LO, pauseLo);
set(WHITE PAUSE_HI, pauseHi);
set(WHITE RAMP_STEP_MS, stepDuration);
+ set(WHITE BLINK, 1);
} else {
set(WHITE BRIGHTNESS, whiteBrightness);
}