Too long field comment becomes log field name fix #4716

This commit is contained in:
rusefillc 2022-11-01 17:40:29 -04:00
parent 54cea0119a
commit de122de978
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -21,7 +21,7 @@ public class OutputChannelWriter {
private int cumulativeSize = 0; private int cumulativeSize = 0;
public void writeOutputChannels(ParseState parser, String namePrefix) throws FileNotFoundException { public void writeOutputChannels(ParseState parser, String namePrefix) {
// Assume the last struct is the one we want... // Assume the last struct is the one we want...
Struct s = parser.getStructs().get(parser.getStructs().size() - 1); Struct s = parser.getStructs().get(parser.getStructs().size() - 1);

View File

@ -62,8 +62,8 @@ public class TsOutput {
// we might have detailed long comment for header javadoc but need a short field name for logs/rusEFI online // we might have detailed long comment for header javadoc but need a short field name for logs/rusEFI online
commentContent = commentContent.substring(0, newLineIndex); commentContent = commentContent.substring(0, newLineIndex);
} }
// if (!isConstantsSection && commentContent.length() > MSQ_LENGTH_LIMIT) if (!isConstantsSection && commentContent.length() > MSQ_LENGTH_LIMIT)
// throw new IllegalStateException("[" + commentContent + "] is too long for rusEFI online"); throw new IllegalStateException("[" + commentContent + "] is too long for rusEFI online at " + commentContent.length());
settingContextHelp.append("\t" + nameWithPrefix + " = " + quote(commentContent) + EOL); settingContextHelp.append("\t" + nameWithPrefix + " = " + quote(commentContent) + EOL);
} }