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

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

Reply via email to