Add generator for boolean fields 61/23061/1
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 26 Nov 2019 15:07:11 +0000 (16:07 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 26 Nov 2019 15:07:11 +0000 (16:07 +0100)
Bug-AGL: SPEC-2779
Bug-AGL: SPEC-2976

Change-Id: Idaf74af197866152d9094941b44e7b752d0ccf80
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/main.cpp

index 9f7969f..9961105 100644 (file)
@@ -170,8 +170,8 @@ std::ostream& operator<<(std::ostream& o, const generator<openxc::signal>& v)
                }\r
                std::string multi = "std::make_pair<bool, int>(" + multi_first + ", " + std::to_string(v.v_.multiplex().second) + ")";\r
        o       << v.line_prefix_ << '\t' << multi << ",// multiplex\n"\r
-               << v.line_prefix_ << '\t' << v.v_.is_big_endian() << ",// is_big_endian\n"\r
-               << v.line_prefix_ << '\t' << v.v_.is_signed() << ",// is_signed\n"\r
+               << v.line_prefix_ << '\t' << gen(v.v_.is_big_endian()) << ",// is_big_endian\n"\r
+               << v.line_prefix_ << '\t' << gen(v.v_.is_signed()) << ",// is_signed\n"\r
                << v.line_prefix_ << "\t" << gen(v.v_.unit()) << "// unit\n"\r
                << v.line_prefix_ << "})}";\r
        return o;\r