diff options
author | XpLoDWilD <xplodgui@gmail.com> | 2012-06-14 19:48:19 +0200 |
---|---|---|
committer | XpLoDWilD <xplodgui@gmail.com> | 2012-06-14 19:55:39 +0200 |
commit | 64dd846ab4ff2eb8a56cb00bcc91c05565167673 (patch) | |
tree | 1645a7a26a29cd1266bbafa79086cfbc9546ef88 | |
parent | beeef87d0be24f99d1e15ddf431d24284135f723 (diff) | |
download | android_hardware_samsung-64dd846ab4ff2eb8a56cb00bcc91c05565167673.tar.gz android_hardware_samsung-64dd846ab4ff2eb8a56cb00bcc91c05565167673.tar.bz2 android_hardware_samsung-64dd846ab4ff2eb8a56cb00bcc91c05565167673.zip |
Fix blue light sticking and fixed delays
Change-Id: I1a9a92eaaf09f6a5524e0d08b4fdefa2b7ba000d
-rw-r--r-- | exynos4/exynos4x12/liblights/lights.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exynos4/exynos4x12/liblights/lights.c b/exynos4/exynos4x12/liblights/lights.c index b59f8ec..ba0f0fc 100644 --- a/exynos4/exynos4x12/liblights/lights.c +++ b/exynos4/exynos4x12/liblights/lights.c @@ -169,14 +169,14 @@ static int set_light_leds(struct light_state_t const *state, int type) led.red = 0; led.green = 0; led.blue = 0; - snprintf(led.blink, MAX_WRITE_CMD, "0x00 0 0"); + snprintf(led.blink, MAX_WRITE_CMD, "0x000000 0 0"); break; case LIGHT_FLASH_TIMED: case LIGHT_FLASH_HARDWARE: led.red = (colorRGB >> 16) & 0xFF; led.green = (colorRGB >> 8) & 0xFF; led.blue = colorRGB & 0xFF; - snprintf(led.blink, MAX_WRITE_CMD, "0xFF 80 2000"); + snprintf(led.blink, MAX_WRITE_CMD, "0x%x %d %d", colorRGB, state->flashOnMS, state->flashOffMS); break; default: return -EINVAL; |