Commit fc356969 authored by Donald Chen's avatar Donald Chen
Browse files

fix service data copy

parent e83e206f
......@@ -307,6 +307,6 @@ func serviceDataList(sd []ble.ServiceData, d []byte, w int) []ble.ServiceData {
UUID: ble.UUID(d[:w]),
Data: make([]byte, len(d)-w),
copy(serviceData.Data, d[2:])
copy(serviceData.Data, d[w:])
return append(sd, serviceData)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment