examples/bluetooth/ble_temperature_central.py: Shorten comment.
So the line length is less than 100 characters.
This commit is contained in:
parent
a0441fc15d
commit
3c58d9a1a5
|
@ -72,7 +72,7 @@ class BLETemperatureCentral:
|
||||||
if connectable and _ENV_SENSE_UUID in decode_services(adv_data):
|
if connectable and _ENV_SENSE_UUID in decode_services(adv_data):
|
||||||
# Found a potential device, remember it and stop scanning.
|
# Found a potential device, remember it and stop scanning.
|
||||||
self._addr_type = addr_type
|
self._addr_type = addr_type
|
||||||
self._addr = bytes(addr) # Note: The addr buffer is owned by modbluetooth, need to copy it.
|
self._addr = bytes(addr) # Note: addr buffer is owned by caller so need to copy it.
|
||||||
self._name = decode_name(adv_data) or '?'
|
self._name = decode_name(adv_data) or '?'
|
||||||
self._ble.gap_scan(None)
|
self._ble.gap_scan(None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue