Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bed6c71 authored by Michael Bestas's avatar Michael Bestas Committed by Steve Kondik
Browse files

lights: Add music light support (2/2)

Change-Id: I734e0d09bf9b01c149d456035eaa8ea5db009dad
parent af3a5330
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -41,7 +41,8 @@ public class LightsService {
    public static final int LIGHT_ID_WIFI = 7;
    public static final int LIGHT_ID_CAPS = 8;
    public static final int LIGHT_ID_FUNC = 9;
    public static final int LIGHT_ID_COUNT = 10;
    public static final int LIGHT_ID_MUSIC = 10;
    public static final int LIGHT_ID_COUNT = 11;

    public static final int LIGHT_FLASH_NONE = 0;
    public static final int LIGHT_FLASH_TIMED = 1;
+4 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ enum {
    LIGHT_INDEX_WIFI = 7,
    LIGHT_INDEX_CAPS = 8,
    LIGHT_INDEX_FUNC = 9,
    LIGHT_INDEX_MUSIC = 10,
    LIGHT_COUNT
};

@@ -92,6 +93,8 @@ static jint init_native(JNIEnv *env, jobject clazz)
                = get_device(module, LIGHT_ID_CAPS);
        devices->lights[LIGHT_INDEX_FUNC]
                = get_device(module, LIGHT_ID_FUNC);
        devices->lights[LIGHT_INDEX_MUSIC]
                = get_device(module, LIGHT_ID_MUSIC);
    } else {
        memset(devices, 0, sizeof(Devices));
    }