Skip to content

Commit a741c93

Browse files
committed
Fix error found by lint when adding to an existing list of service data.
1 parent 5d95dc6 commit a741c93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_ble/advertising/standard.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ def __get__(self, obj, cls):
289289
all_service_data[i] = service_data
290290
return memoryview(service_data)[len(self._prefix):]
291291
if obj.mutable:
292-
all_service_data.append(bytearray(self._prefix))
292+
service_data = bytearray(self._prefix)
293+
all_service_data.append(service_data)
293294
return memoryview(service_data)[len(self._prefix):]
294295
# Existing data is a single set of bytes.
295296
elif isinstance(all_service_data, (bytes, bytearray)):

0 commit comments

Comments
 (0)