sdm660-common: light: Fix double led lighting when notification

Change-Id: Id348163afb02680e72caa146b3119fe6ec911541
This commit is contained in:
Max Weffers 2020-04-17 15:31:10 +02:00 committed by OdSazib
parent 973ee9b5d9
commit c90090bc75
No known key found for this signature in database
GPG key ID: CB336514F9F5CF69

View file

@ -53,7 +53,7 @@ constexpr auto kDefaultMaxScreenBrightness = 4095;
constexpr auto kRampStepDuration = 150; constexpr auto kRampStepDuration = 150;
// Each value represents a duty percent (0 - 100) for the led pwm. // 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. // Write value to path and close file.
bool WriteToFile(const std::string& path, uint32_t content) { bool WriteToFile(const std::string& path, uint32_t content) {