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_deer...@swissmail.org>
---
 framework/subsystems/oeventsd/leds_actions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/subsystems/oeventsd/leds_actions.py 
b/framework/subsystems/oeventsd/leds_actions.py
index ffdf21a..77b96d1 100644
--- a/framework/subsystems/oeventsd/leds_actions.py
+++ b/framework/subsystems/oeventsd/leds_actions.py
@@ -78,7 +78,7 @@ class Led(object):
 
     def __blink(self):
         logger.info("blink led %s", self)
-        self.interface.SetBlinking(100, 1500, reply_handler=self.on_reply, 
error_handler=self.on_error)
+        self.interface.SetBlinking(128, 2048, reply_handler=self.on_reply, 
error_handler=self.on_error)
 
     def turn_on(self, user):
         self.users[user] = 'on'
-- 
1.9.0

_______________________________________________
Shr-devel mailing list
Shr-devel@lists.shr-project.org
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to