aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/can/can-signals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'low-can-binding/can/can-signals.cpp')
-rw-r--r--low-can-binding/can/can-signals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/low-can-binding/can/can-signals.cpp b/low-can-binding/can/can-signals.cpp
index 240436ff..14881e89 100644
--- a/low-can-binding/can/can-signals.cpp
+++ b/low-can-binding/can/can-signals.cpp
@@ -111,7 +111,7 @@ bool can_signal_t::get_send_same() const
const std::string can_signal_t::get_states(uint8_t value)
{
- if (value < states_.size())
+ if ( states_.count(value) > 0 )
return states_[value];
return std::string();
}