diff options
| author | Craig Donner <cdonner@google.com> | 2016-08-22 09:29:53 -0700 |
|---|---|---|
| committer | Santos Cordon <santoscordon@google.com> | 2017-01-13 10:22:23 -0800 |
| commit | 3ab6a384e76230827e8cbf9812badb44d99ea831 (patch) | |
| tree | a14447a8061e0117dfafce5868a93a87e1394d68 /liblight | |
| parent | a0276b86be4361997c556abaf90e6b76b1819639 (diff) | |
lights: Allow changing brightness when in low-persistence mode.
Bug: 30984614
Change-Id: I57c53df6dd9507b209959b0caa34ac1fc460ad34
Diffstat (limited to 'liblight')
| -rw-r--r-- | liblight/lights.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/liblight/lights.c b/liblight/lights.c index 7ceec6e5..c0444cc9 100644 --- a/liblight/lights.c +++ b/liblight/lights.c @@ -197,10 +197,6 @@ set_light_backlight(struct light_device_t* dev, ALOGE("%s: Failed to write to %s: %s\n", __FUNCTION__, PERSISTENCE_FILE, strerror(errno)); } - if (lpEnabled != 0) { - // This is defined in BoardConfig.mk. - brightness = DEFAULT_LOW_PERSISTENCE_MODE_BRIGHTNESS; - } } g_last_backlight_mode = state->brightnessMode; |
