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

Skip to content
Commit f74fde19 authored by Tnze's avatar Tnze Committed by JunDao Tnze
Browse files

Use HwLight.type as the key of mLightsByType



There are two paths to consider:
- HIDL HAL: We always set hwLight.id == hwLight.type == (byte)i;
- AIDL HAL: hwLight.id may be not equals to hwLight.type;
This patch use hwLight.type as the key of mLightsByType.

Change-Id: I5c8c4df4bb2d6bda44bdd62d2b9ac7d9cb674d3f
Signed-off-by: default avatarTnze <cjd001113@outlook.com>
parent 860bf12b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment