summaryrefslogtreecommitdiffstats
path: root/src/openxc/diagnostic_message.cpp
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2017-03-16 09:54:02 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2017-03-16 09:54:02 +0100
commitfbd0fb6d5f38f7a12f3bebb4a7fb14bd3e6bfb7c (patch)
treef03dc9d234c145aadc55d3aad4ca7e867000b3a6 /src/openxc/diagnostic_message.cpp
parentfa8c58708fe0fa8a0f4a88293e0eed196494f020 (diff)
wip: generation of a configuration for can_signaling.
Change-Id: I35b31a98e87943a4e2fcad06561fec7a347b8483 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'src/openxc/diagnostic_message.cpp')
-rwxr-xr-xsrc/openxc/diagnostic_message.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openxc/diagnostic_message.cpp b/src/openxc/diagnostic_message.cpp
index 44b21c64..3881abef 100755
--- a/src/openxc/diagnostic_message.cpp
+++ b/src/openxc/diagnostic_message.cpp
@@ -17,7 +17,7 @@ namespace openxc
return mode_;
}
- std::uint32_t diagnostic_message::frequency() const
+ float diagnostic_message::frequency() const
{
return frequency_;
}
@@ -47,7 +47,7 @@ namespace openxc
bus_ = j.count("bus") ? j["bus"].get<std::string>() : "";
id_ = j.count("id") ? j["id"].get<std::uint32_t>() : 0;
mode_ = j.count("mode") ? j["mode"].get<std::uint32_t>() : 1;
- frequency_ = j.count("frequency") ? j["frequency"].get<std::uint32_t>() : 0;
+ frequency_ = j.count("frequency") ? j["frequency"].get<float>() : 0;
pid_ = j.count("pid") ? j["pid"].get<std::uint32_t>() : 0;
name_ = j.count("name") ? j["name"].get<std::string>() : "";
decoder_ = j.count("decoder") ? j["decoder"].get<std::string>() : "";