Modify to receive signal with bigger value than the number of states 66/21566/2
authorHiroki Koga <hiroki@witz-inc.co.jp>
Wed, 5 Jun 2019 08:37:11 +0000 (17:37 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 19 Jun 2019 14:15:05 +0000 (14:15 +0000)
commit2eda264a201385f5073362207b7de84bf71f9ec1
tree8b4f55f56bffc58b01a99875aebbaab879ec8fab
parent087a7c0e7de28bb1c16895ef9d414666d37a35ea
Modify to receive signal with bigger value than the number of states

Fix the bug about a part of decode_state in can-signals.cpp.

If a state of signal is allocated not in order, the signal
which is bigger value than the number of states cannot be received,
because can_signal_t::get_states compares signal value with
the number of states.
By this modification, get_states is changed to judges
whether a signal value exists in states or not.

Bug AGL: SPEC-2504

Change-Id: Ia67413507950654567808f7a08d0b0b3b47cbd23
Signed-off-by: Hiroki Koga <hiroki@witz-inc.co.jp>
low-can-binding/can/can-signals.cpp