We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When VAL_ in DBC is splited in multiple lines, then generated comment is invalid (it does not compile).
For example this line:
VAL_ 11111 Bat_Status 0 "Battery level above 2.1V " 1 " Low Battery(below 2.1V) " ;
will produce:
uint8_t Bat_Status : 1; // Bits= 1 // 0 : "Battery level above 2.1V " // 1 : " Low Battery(below 2.1V) "
To solve that I modified DbcLineParser::ParseValTableLine method to drop all new lines within valueline
bool DbcLineParser::ParseValTableLine(Comment_t* comm, const std::string& line, ValTable_t& vtab) { bool ret = false; if (line.size() > 0) { if (line.find("VAL_ ") == 0) { valueline.clear(); valueline = line; } else if (valueline.size() > 0) { valueline += line; } // check if the current line is last if (valueline.size() > 0 && line.back() == ';') { std::replace(valueline.begin(), valueline.end(), '\n', ' '); std::replace(valueline.begin(), valueline.end(), '\r', ' ');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When VAL_ in DBC is splited in multiple lines, then generated comment is invalid (it does not compile).
For example this line:
will produce:
To solve that I modified DbcLineParser::ParseValTableLine method to drop all new lines within valueline
The text was updated successfully, but these errors were encountered: