Skip to content

Commit

Permalink
Release v6.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Aug 9, 2023
2 parents e40ff6b + 8766fde commit b0bf73b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/commsdsl2comms/src/CommsVariantField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ std::string CommsVariantField::commsDefSelectFieldCodeInternal() const
" return;\n"
" }\n\n"
" reset();\n"
" switch (Base::currentField()) {\n"
" switch (idx) {\n"
" #^#CASES#$#\n"
" default: break;\n"
" }\n"
Expand Down
10 changes: 10 additions & 0 deletions app/commsdsl2comms/test/test28/test28Test.th
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class TestSuite : public CxxTest::TestSuite
public:
void test1();
void test2();
void test3();

using Interface =
test28::Message<
Expand Down Expand Up @@ -55,3 +56,12 @@ void TestSuite::test2()
Msg2 msg;
msg.field_f1().initField_p120().field_val().value() = 0xff;
}

void TestSuite::test3()
{
Msg1 msg;
msg.field_variant1().initField_p1();
TS_ASSERT_EQUALS(msg.field_variant1().currentField(), 0U);
msg.field_variant1().selectField(1U);
TS_ASSERT_EQUALS(msg.field_variant1().currentField(), 1U);
}
2 changes: 1 addition & 1 deletion lib/include/commsdsl/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define COMMSDSL_MINOR_VERSION 2U

/// @brief Patch level of the library
#define COMMSDSL_PATCH_VERSION 0U
#define COMMSDSL_PATCH_VERSION 1U

/// @brief Macro to create numeric version as single unsigned number
#define COMMSDSL_MAKE_VERSION(major_, minor_, patch_) \
Expand Down

0 comments on commit b0bf73b

Please sign in to comment.