Commit 87e7d5e1 authored by Michael Ott's avatar Michael Ott
Browse files

Fix SensorId::toString to print a hex version of the sensorId and not decimal

parent 68ab1713
...@@ -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), "%" PRIu64 "%" PRIu64, data.raw[0], data.raw[1]); snprintf(buf, sizeof(buf), "%" PRIx64 "%" PRIx64, data.raw[0], data.raw[1]);
return std::string(buf); return std::string(buf);
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment