aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CAN-config-generator/src/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/CAN-config-generator/src/main.cpp b/CAN-config-generator/src/main.cpp
index cfefed84..e0240a85 100644
--- a/CAN-config-generator/src/main.cpp
+++ b/CAN-config-generator/src/main.cpp
@@ -225,9 +225,9 @@ void generate(const std::string& header, const std::string& footer, const openxc
<< " {\n";
std::uint32_t message_count = message_set.messages().size();
std::uint32_t index = 0;
+ out << " {\n";
for(const openxc::can_message& m : message_set.messages())
{
- out << " {\n";
std::uint32_t signal_count = m.signals().size();
for(const openxc::signal& s : m.signals())
{
@@ -236,11 +236,10 @@ void generate(const std::string& header, const std::string& footer, const openxc
--signal_count;
out << '\n';
}
- out << " }";
if (index + 1 < message_count) out << ',';
++index;
- out << '\n';
}
+ out << " }\n";
out << " }\n"
<< " , diagnostic_messages_\n"
<< " {\n"