mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 02:08:50 +01:00
Merge pull request #160 from cuu/master
bluetooth on gs dev_connect bug fix
This commit is contained in:
commit
7ae4303d58
@ -33,7 +33,12 @@ class BleAgent(dbus.service.Object):
|
|||||||
global BUS_NAME
|
global BUS_NAME
|
||||||
dev = dbus.Interface(bus.get_object(BUS_NAME, path),
|
dev = dbus.Interface(bus.get_object(BUS_NAME, path),
|
||||||
"org.bluez.Device1")
|
"org.bluez.Device1")
|
||||||
dev.Connect()
|
|
||||||
|
print("dev_connect %s" % path)
|
||||||
|
try:
|
||||||
|
dev.Connect()
|
||||||
|
except Exception,e:
|
||||||
|
print(str(e))
|
||||||
|
|
||||||
@dbus.service.method(AGENT_INTERFACE,in_signature="", out_signature="")
|
@dbus.service.method(AGENT_INTERFACE,in_signature="", out_signature="")
|
||||||
def Release(self):
|
def Release(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user