[Fso] Fwd: [PATCH] Make Vibrator access consistent with all fso Vibrator plugins

Benjamin Deering ben_deering at swissmail.org
Wed Mar 12 22:36:00 CET 2014


All of the available FSO vibrator plugins only support a single device.
Frameworkd was setup to support multiple devices resulting in errors when
the vibrators are accessed through FSO.
---
  framework/subsystems/oeventsd/fso_actions.py |    6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/framework/subsystems/oeventsd/fso_actions.py b/framework/subsystems/oeventsd/fso_actions.py
index 9df0d87..72bf44b 100644
--- a/framework/subsystems/oeventsd/fso_actions.py
+++ b/framework/subsystems/oeventsd/fso_actions.py
@@ -160,13 +160,13 @@ class VibratorAction(Action):
          if self.mode == "continuous":
              DBusAction(dbus.SystemBus(),
                          'org.freesmartphone.odeviced',
-                        '/org/freesmartphone/Device/Vibrator/%s' % self.target,
+                        '/org/freesmartphone/Device/Vibrator',
                          'org.freesmartphone.Device.Vibrator',
                          'VibratePattern', 999, 300, 700, 90).trigger()
          elif self.mode == "oneshot":
              DBusAction(dbus.SystemBus(),
                          'org.freesmartphone.odeviced',
-                        '/org/freesmartphone/Device/Vibrator/%s' % self.target,
+                        '/org/freesmartphone/Device/Vibrator',
                          'org.freesmartphone.Device.Vibrator',
                          'Vibrate', 400, 90).trigger()
          else:
@@ -175,7 +175,7 @@ class VibratorAction(Action):
      def untrigger(self, **kargs):
          DBusAction(dbus.SystemBus(),
                      'org.freesmartphone.odeviced',
-                    '/org/freesmartphone/Device/Vibrator/%s' % self.target,
+                    '/org/freesmartphone/Device/Vibrator',
                      'org.freesmartphone.Device.Vibrator',
                      'Stop').trigger()

-- 
1.7.10.4



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Attached Message Part
URL: <http://lists.goldelico.com/pipermail/fso/attachments/20140312/a4d9a7b2/attachment.ksh>


More information about the Fso mailing list