mirror of
https://github.com/LineageOS/android_device_xiaomi_whyred.git
synced 2025-10-04 10:19:25 +02:00
lights: We have only single color led.
Also add additional steps to duty cycle to make notif light fade smoother. Also detect maximum brightness dynamically
This commit is contained in:
parent
b9eb4bc24c
commit
abcab1e2cd
5 changed files with 51 additions and 50 deletions
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#define LOG_TAG "android.hardware.light@2.0-service.xiaomi_msm8998"
|
||||
#define LOG_TAG "android.hardware.light@2.0-service.xiaomi_sdm660"
|
||||
|
||||
#include <hidl/HidlTransportSupport.h>
|
||||
|
||||
|
@ -31,7 +31,7 @@ using android::sp;
|
|||
using android::status_t;
|
||||
|
||||
int main() {
|
||||
sp<ILight> service = new Light();
|
||||
android::sp<ILight> service = new Light();
|
||||
|
||||
configureRpcThreadpool(1, true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue