From 0bb5744297d7d25577b5ed48899c021e23e9a8ec Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 1 Jul 2019 18:20:04 +0200 Subject: main.cc: Fix the default decoder using "states" This fix the decoder to use when a signal has states. Bug-AGL: SPEC-2582 Change-Id: I9d0ddf23cc9ab4ca6f447b62a22482f2b772a027 Signed-off-by: Romain Forlot --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& 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_ << "})}"; -- cgit 1.2.3-korg