summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-07-01 18:20:04 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2019-07-01 18:20:04 +0200
commit0bb5744297d7d25577b5ed48899c021e23e9a8ec (patch)
tree6407aed778316e24210d568ada8de6c260d4c789
parentda429cc20fb3725e2af764fbdfc6ed6e4f210907 (diff)
This fix the decoder to use when a signal has states. Bug-AGL: SPEC-2582 Change-Id: I9d0ddf23cc9ab4ca6f447b62a22482f2b772a027 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0608f16..7880da2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -159,7 +159,7 @@ std::ostream& operator<<(std::ostream& o, const generator<openxc::signal>& v)
<< v.line_prefix_ << "\t" << gen(v.v_.force_send_changed()) << ",\n"
<< gen(v.v_.states(), v.line_prefix_ + '\t') << ",\n"
<< v.line_prefix_ << '\t' << gen(v.v_.writable()) << ",\n"
- << v.line_prefix_ << '\t' << (v.v_.decoder().size() ? v.v_.decoder() : "nullptr") << ",\n"
+ << v.line_prefix_ << '\t' << (v.v_.decoder().size() ? v.v_.decoder() : v.v_.states().size() ? "decoder_t::decode_state" : "nullptr") << ",\n"
<< v.line_prefix_ << '\t' << (v.v_.encoder().size() ? v.v_.encoder() : "nullptr") << ",\n"
<< v.line_prefix_ << '\t' << "false\n"
<< v.line_prefix_ << "})}";