Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
forks
ble
Commits
fc356969
Commit
fc356969
authored
Mar 29, 2019
by
Donald Chen
Browse files
fix service data copy
parent
e83e206f
Changes
1
Hide whitespace changes
Inline
Side-by-side
linux/adv/packet.go
View file @
fc356969
...
...
@@ -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
)
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment