mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-06-30 23:17:54 +09:00
sm6250-common: light: do not turn on breathing for unlit hardware states
Change-Id: I093fb2fb81012a473eda232d3c3407d0e0791907
This commit is contained in:
@ -95,6 +95,11 @@ static void handleNotification(const LightState& state) {
|
||||
|
||||
/* Disable breathing or blinking */
|
||||
set(WHITE_LED BREATH, 0);
|
||||
set(WHITE_LED BRIGHTNESS, 0);
|
||||
|
||||
if (!whiteBrightness) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (state.flashMode) {
|
||||
case Flash::HARDWARE:
|
||||
|
Reference in New Issue
Block a user