WIP remove automatic connect of the devices

This creates an infinite loop on the Slate, as the device accepts the
following connect right after the disconnect
This commit is contained in:
Benjamin Tissoires 2018-01-17 14:26:39 +01:00
parent 5f5ce71aef
commit 0d82afd690
1 changed files with 0 additions and 4 deletions

View File

@ -85,17 +85,13 @@ class TuhiDevice(GObject.Object):
bluez_device.connect('connected', self._on_bluez_device_connected)
bluez_device.connect('disconnected', self._on_bluez_device_disconnected)
bluez_device.connect_device()
def _on_bluez_device_connected(self, bluez_device):
logger.debug('{}: connected'.format(bluez_device.address))
self._wacom_device.start()
def _on_bluez_device_disconnected(self, bluez_device):
# FIXME: immediately try to reconnect, at least until the DBusServer
# is hooked up correctly
logger.debug('{}: disconnected'.format(bluez_device.address))
bluez_device.connect_device()
def _on_drawing_received(self, device, drawing):
logger.debug('Drawing received')