Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
dac94862
Commit
dac94862
authored
Nov 09, 2017
by
Michael Ott
Browse files
Add leading zeros to sensorid in toString()
parent
3055629d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/src/sensorid.cpp
View file @
dac94862
...
@@ -159,7 +159,7 @@ std::string SensorId::serialize() const
...
@@ -159,7 +159,7 @@ std::string SensorId::serialize() const
std
::
string
SensorId
::
toString
()
const
std
::
string
SensorId
::
toString
()
const
{
{
char
buf
[
33
];
char
buf
[
33
];
snprintf
(
buf
,
sizeof
(
buf
),
"%"
PRIx64
"%"
PRIx64
,
data
.
raw
[
0
],
data
.
raw
[
1
]);
snprintf
(
buf
,
sizeof
(
buf
),
"%
016
"
PRIx64
"%
016
"
PRIx64
,
data
.
raw
[
0
],
data
.
raw
[
1
]);
return
std
::
string
(
buf
);
return
std
::
string
(
buf
);
}
}
...
...
Write
Preview
Markdown
is supported
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