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