aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-04-17 09:48:28 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-04-17 12:24:23 +0200
commita4225208ebba54f641176b9ef682ad2c2409ef11 (patch)
tree012b8f66d0de9c81c60a16fba2d38bdbc6c64b57
parentd844c48c5f2630bede6e0bbc515f43cae78f5e97 (diff)
Add boolean to set receive state at initialisation of a diagnostic message object. Bug-AGL: SPEC-1347 Change-Id: I5b9a1367f08441387664cd6d9ff53a1c23d0b4f7 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d30428e..dad4480 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -203,7 +203,8 @@ std::ostream& operator<<(std::ostream& o, const generator<openxc::diagnostic_mes
<< v.line_prefix_ << "\t" << gen(v.v_.frequency()) << ",\n"
<< v.line_prefix_ << "\t" << (v.v_.decoder().size() ? v.v_.decoder() : "nullptr") << ",\n"
<< v.line_prefix_ << "\t" << (v.v_.callback().size() ? v.v_.callback() : "nullptr") << ",\n"
- << v.line_prefix_ << "\t" << "true" << "\n"
+ << v.line_prefix_ << "\t" << "true" << ",\n"
+ << v.line_prefix_ << "\t" << "false" << "\n"
<< v.line_prefix_ << "})}\n";
return o;
}