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); } }