From c90090bc752f8ae82f94fa74371350ced419e6dc Mon Sep 17 00:00:00 2001 From: Max Weffers Date: Fri, 17 Apr 2020 15:31:10 +0200 Subject: [PATCH] sdm660-common: light: Fix double led lighting when notification Change-Id: Id348163afb02680e72caa146b3119fe6ec911541 --- light/Light.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light/Light.cpp b/light/Light.cpp index 8a315112..3915682d 100644 --- a/light/Light.cpp +++ b/light/Light.cpp @@ -53,7 +53,7 @@ constexpr auto kDefaultMaxScreenBrightness = 4095; constexpr auto kRampStepDuration = 150; // Each value represents a duty percent (0 - 100) for the led pwm. -constexpr std::array kBrightnessRamp = {0, 12, 25, 37, 50, 72, 85, 100, 85, 72, 50, 37, 25, 12, 0}; +constexpr std::array kBrightnessRamp = {0, 12, 25, 37, 50, 72, 85, 100}; // Write value to path and close file. bool WriteToFile(const std::string& path, uint32_t content) {