forked from mirror/joycontrol
cleanup
This commit is contained in:
@@ -53,7 +53,6 @@ class HidDevice:
|
|||||||
"""
|
"""
|
||||||
self.properties.Set(self.adapter.dbus_interface, 'Pairable', boolean)
|
self.properties.Set(self.adapter.dbus_interface, 'Pairable', boolean)
|
||||||
|
|
||||||
|
|
||||||
async def set_class(self, cls='0x002508'):
|
async def set_class(self, cls='0x002508'):
|
||||||
"""
|
"""
|
||||||
Sets Bluetooth device class. Requires hciconfig system command.
|
Sets Bluetooth device class. Requires hciconfig system command.
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ async def create_hid_server(protocol_factory, ctl_psm=17, itr_psm=19, device_id=
|
|||||||
|
|
||||||
hid.powered(True)
|
hid.powered(True)
|
||||||
hid.pairable(True)
|
hid.pairable(True)
|
||||||
|
|
||||||
# setting bluetooth adapter name and class to the device we wish to emulate
|
# setting bluetooth adapter name and class to the device we wish to emulate
|
||||||
await hid.set_name(protocol.controller.device_name())
|
await hid.set_name(protocol.controller.device_name())
|
||||||
await hid.set_class()
|
await hid.set_class()
|
||||||
|
|||||||
Reference in New Issue
Block a user