Skip to content

Commit

Permalink
Fix debugging print
Browse files Browse the repository at this point in the history
  • Loading branch information
shamlian committed Aug 24, 2023
1 parent 0b64c68 commit 1c2b182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion irobot_edu_sdk/backend/bluetooth_desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ async def connect(self):
self._address = device.address
self._device = device
break
print(f'Connecting to {device.name} ({device.address})')
if self._device:
print(f'Connecting to {device.name} ({device.address})')
self._client = BleakClient(self._device)
else:
print(f'Connecting to {self._address}')
self._client = BleakClient(self._address)

if await self._client.connect():
Expand Down

0 comments on commit 1c2b182

Please sign in to comment.