Skip to content
Commit 3fbd8716 authored by Rafal Prylowski's avatar Rafal Prylowski Committed by Bryan Wu
Browse files

leds: don't disable blinking when writing the same value to delay_on or delay_off



Function led_set_software_blink() assumes that blink timer is still running,
but commit 488bc35b introduced disabling
of blink timer before each call to led_set_software_blink().

Correct led_software_blink():
1) remove protection against reprogramming blink timer to the same values,
   because it only disables blinking now,
2) remove unnecessary call to led_stop_software_blink().

Signed-off-by: default avatarRafal Prylowski <prylowski@metasoft.pl>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: default avatarBryan Wu <bryan.wu@canonical.com>
parent cfaf0251
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment