Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marc Schink
libjaylink-snippets
Commits
cff440a9
Commit
cff440a9
authored
Aug 04, 2016
by
Marc Schink
Browse files
Use jaylink_parse_serial_number()
parent
e7c5a2c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
device_info.c
View file @
cff440a9
...
...
@@ -126,7 +126,9 @@ int main(int argc, char **argv)
use_serial_number
=
false
;
if
(
argc
>
1
)
{
if
(
sscanf
(
argv
[
1
],
"%"
PRIu32
,
&
serial_number
)
!=
1
)
{
ret
=
jaylink_parse_serial_number
(
argv
[
1
],
&
serial_number
);
if
(
ret
!=
JAYLINK_OK
)
{
printf
(
"Failed to parse serial number: %s.
\n
"
,
argv
[
1
]);
return
EXIT_FAILURE
;
...
...
efm32_debug_mode.c
View file @
cff440a9
...
...
@@ -85,7 +85,9 @@ int main(int argc, char **argv)
use_serial_number
=
false
;
if
(
argc
>
2
)
{
if
(
sscanf
(
argv
[
2
],
"%"
PRIu32
,
&
serial_number
)
!=
1
)
{
ret
=
jaylink_parse_serial_number
(
argv
[
2
],
&
serial_number
);
if
(
ret
!=
JAYLINK_OK
)
{
printf
(
"Failed to parse serial number: %s.
\n
"
,
argv
[
2
]);
return
EXIT_FAILURE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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