aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Guyader <arthur.guyader@iot.bzh>2019-08-29 15:06:52 +0200
committerArthur Guyader <arthur.guyader@iot.bzh>2019-08-29 18:10:35 +0200
commit93debbc7de331c4d8b9dda0cdfa8d785017dc27a (patch)
tree4ba2ab1d79a41dc6497f67f20134ff833942b739
parentafa9e975060169168853700c06736ab519e996ee (diff)
Add generator for boolean fields
Bug-AGL : SPEC-2779 Change-Id: Idaf74af197866152d9094941b44e7b752d0ccf80 Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9f7969f..9961105 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -170,8 +170,8 @@ std::ostream& operator<<(std::ostream& o, const generator<openxc::signal>& v)
}
std::string multi = "std::make_pair<bool, int>(" + multi_first + ", " + std::to_string(v.v_.multiplex().second) + ")";
o << v.line_prefix_ << '\t' << multi << ",// multiplex\n"
- << v.line_prefix_ << '\t' << v.v_.is_big_endian() << ",// is_big_endian\n"
- << v.line_prefix_ << '\t' << v.v_.is_signed() << ",// is_signed\n"
+ << v.line_prefix_ << '\t' << gen(v.v_.is_big_endian()) << ",// is_big_endian\n"
+ << v.line_prefix_ << '\t' << gen(v.v_.is_signed()) << ",// is_signed\n"
<< v.line_prefix_ << "\t" << gen(v.v_.unit()) << "// unit\n"
<< v.line_prefix_ << "})}";
return o;