Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
World
Boatswain
Commits
8d55a0ea
Commit
8d55a0ea
authored
Apr 04, 2022
by
Georges Basile Stavracas Neto
Browse files
stream-deck: Fix Mini / Original (V1) serial number fetching
The first 5 bytes are garbage, ignore them.
parent
92afc28e
Pipeline
#385110
passed with stage
in 3 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bs-stream-deck.c
View file @
8d55a0ea
...
...
@@ -480,8 +480,8 @@ get_serial_number_mini_original (BsStreamDeck *self)
hid_get_feature_report
(
self
->
handle
,
data
,
sizeof
(
data
));
serial
=
g_malloc0
(
sizeof
(
char
)
*
1
7
);
memcpy
(
serial
,
&
data
[
1
],
1
6
);
serial
=
g_malloc0
(
sizeof
(
char
)
*
1
3
);
memcpy
(
serial
,
&
data
[
5
],
1
2
);
BS_RETURN
(
serial
);
}
...
...
Georges Basile Stavracas Neto
@feaneron
mentioned in issue
#4 (closed)
·
Apr 05, 2022
mentioned in issue
#4 (closed)
mentioned in issue #4
Toggle commit list
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