[Fso] [Shr-Devel] [PATCH 3/3] Correct name for vibrator

Lukas Maerdian luk at slyon.de
Fri Jul 4 13:00:52 CEST 2014


Thanks, applied.

On 03.07.2014 13:33 UTC+0200, Ben Deering wrote:
> fsodeviced supports a single vibrator device, updated accesses to the
> vibrator to use Vibrator instead of Vibrator/#
> 
> Signed-off-by: Ben Deering <ben_deering at swissmail.org>
> ---
>  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()
>  
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/fso/attachments/20140704/65fe9c07/attachment.asc>


More information about the Fso mailing list