Skip to content

Commit

Permalink
Fixes issue #1.
Browse files Browse the repository at this point in the history
  • Loading branch information
liamw9534 committed Jul 10, 2014
1 parent 96e95ef commit f4041da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bt_manager/__init__.py
Expand Up @@ -3,7 +3,7 @@
import cffi
import os

__version__ = '0.2.0'
__version__ = '0.3.0'

if StrictVersion(cffi.__version__) < StrictVersion('0.7'):
raise RuntimeError(
Expand Down
4 changes: 3 additions & 1 deletion bt_manager/interface.py
Expand Up @@ -72,6 +72,7 @@ def __init__(self, path, addr):
self._bus = dbus.SystemBus()
self._object = self._bus.get_object('org.bluez', path)
self._interface = dbus.Interface(self._object, addr)
self._path = path


# This class is not intended to be instantiated directly and should be
Expand Down Expand Up @@ -138,7 +139,8 @@ def add_signal_receiver(self, callback_fn, signal, user_arg):
self._signals[signal] = s
self._bus.add_signal_receiver(s.signal_handler,
signal,
dbus_interface=self._dbus_addr)
dbus_interface=self._dbus_addr,
path=self._path)
else:
raise BTSignalNameNotRecognisedException

Expand Down

0 comments on commit f4041da

Please sign in to comment.