Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
We have upgraded GitLab to 15.1. Due to major code changes GitLab was down for some time.
Open sidebar
dcdb
dcdb
Commits
87e7d5e1
Commit
87e7d5e1
authored
Dec 16, 2016
by
Michael Ott
Browse files
Fix SensorId::toString to print a hex version of the sensorId and not decimal
parent
68ab1713
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/src/sensorid.cpp
View file @
87e7d5e1
...
...
@@ -159,7 +159,7 @@ std::string SensorId::serialize() const
std
::
string
SensorId
::
toString
()
const
{
char
buf
[
33
];
snprintf
(
buf
,
sizeof
(
buf
),
"%"
PRI
u
64
"%"
PRI
u
64
,
data
.
raw
[
0
],
data
.
raw
[
1
]);
snprintf
(
buf
,
sizeof
(
buf
),
"%"
PRI
x
64
"%"
PRI
x
64
,
data
.
raw
[
0
],
data
.
raw
[
1
]);
return
std
::
string
(
buf
);
}
...
...
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