Make blink rate for Oeventsd configurable
commitdd74bcf82aebd27dcafeda00431649cfc72169c4
authorBen Deering <ben_deering@swissmail.org>
Tue, 1 Jul 2014 00:19:28 +0000 (30 20:19 -0400)
committerLukas Märdian <luk@slyon.de>
Fri, 4 Jul 2014 10:53:16 +0000 (4 12:53 +0200)
treed65d7f030aace25b6fd7a545b244807302358d1f
parent17faf3f1bfba1614059872350deaa665405e5799
Make blink rate for Oeventsd configurable

Allow 2 optional parameters to oevents blink statements - durationOn and
durationOff.  The default is the previous blink rate.

GTA04 hardware supports fixed blink rates.  If the requested blink rate
is not close (within 12%) of a supported rate, blinking will not
continue in suspend.  Set the blink rate to the closest supported rate.

Signed-off-by: Ben Deering <ben_deering@swissmail.org>
Signed-off-by: Lukas Märdian <luk@slyon.de>
framework/subsystems/oeventsd/leds_actions.py