summaryrefslogtreecommitdiffstats
path: root/src/can/can-signals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/can/can-signals.cpp')
-rw-r--r--src/can/can-signals.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/can/can-signals.cpp b/src/can/can-signals.cpp
index 0f774a1a..2d2e7eaf 100644
--- a/src/can/can-signals.cpp
+++ b/src/can/can-signals.cpp
@@ -35,6 +35,11 @@ std::string& can_signal_t::get_generic_name()
return generic_name_;
}
+std::string can_signal_t::get_name()
+{
+ return prefix_ + "." + generic_name_;
+}
+
uint8_t can_signal_t::get_bit_position() const
{
return bit_position_;
@@ -114,6 +119,11 @@ float can_signal_t::get_last_value() const
return last_value_;
}
+void can_signal_t::set_prefix(std::string val)
+{
+ prefix_ = val;
+}
+
void can_signal_t::set_received(bool r)
{
received_ = r;