From 7964f5f6dc71ef6e2e369adc9adf56b5ac396b95 Mon Sep 17 00:00:00 2001 From: Demon000 Date: Fri, 17 Jul 2020 21:07:17 +0300 Subject: [PATCH] sm6250-common: light: WHITE_LED -> NOTIFICATION_LED --- light/Light.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/light/Light.cpp b/light/Light.cpp index 0815d51..6ba8ff6 100644 --- a/light/Light.cpp +++ b/light/Light.cpp @@ -23,7 +23,7 @@ #include #define LCD_LED "/sys/class/backlight/panel0-backlight/" -#define WHITE_LED "/sys/class/leds/white/" +#define NOTIFICATION_LED "/sys/class/leds/white/" #define BREATH "breath" #define BRIGHTNESS "brightness" @@ -92,8 +92,8 @@ static void handleNotification(const LightState& state) { uint32_t whiteBrightness = getScaledBrightness(state, MAX_LED_BRIGHTNESS); /* Disable breathing or blinking */ - set(WHITE_LED BREATH, 0); - set(WHITE_LED BRIGHTNESS, 0); + set(NOTIFICATION_LED BREATH, 0); + set(NOTIFICATION_LED BRIGHTNESS, 0); if (!whiteBrightness) { return; @@ -103,11 +103,11 @@ static void handleNotification(const LightState& state) { case Flash::HARDWARE: case Flash::TIMED: /* Breathing */ - set(WHITE_LED BREATH, 1); + set(NOTIFICATION_LED BREATH, 1); break; case Flash::NONE: default: - set(WHITE_LED BRIGHTNESS, whiteBrightness); + set(NOTIFICATION_LED BRIGHTNESS, whiteBrightness); } }