mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
Correctly use client in BLEConnection
This commit is contained in:
parent
5f7b179b89
commit
c42cc910e4
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ class BLEConnection:
|
|||
if self.client:
|
||||
logger.debug("Using pre-configured BleakClient.")
|
||||
assert isinstance(self.client, BleakClient)
|
||||
if client.is_connected :
|
||||
if self.client.is_connected :
|
||||
logger.error("Client is already connected !!! weird")
|
||||
self.address = self.client.address
|
||||
return self.address
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue