kopia lustrzana https://github.com/micropython/micropython-lib
Merge 7e88b98729
into 68e0dfce0a
commit
477a12c61f
|
@ -284,10 +284,11 @@ class Characteristic(BaseCharacteristic):
|
||||||
# Timeout.
|
# Timeout.
|
||||||
return
|
return
|
||||||
# See TODO in __init__ to support multiple concurrent indications.
|
# See TODO in __init__ to support multiple concurrent indications.
|
||||||
assert connection == characteristic._indicate_connection
|
if connection == characteristic._indicate_connection:
|
||||||
characteristic._indicate_status = status
|
characteristic._indicate_status = status
|
||||||
characteristic._indicate_event.set()
|
characteristic._indicate_event.set()
|
||||||
|
else:
|
||||||
|
log_warn("Received indication for unexpected connection")
|
||||||
|
|
||||||
class BufferedCharacteristic(Characteristic):
|
class BufferedCharacteristic(Characteristic):
|
||||||
def __init__(self, *args, max_len=20, append=False, **kwargs):
|
def __init__(self, *args, max_len=20, append=False, **kwargs):
|
||||||
|
|
Ładowanie…
Reference in New Issue