convention for fields without TS info
This commit is contained in:
parent
811b616aaa
commit
1dd173b49e
Binary file not shown.
|
@ -13,7 +13,8 @@ import static com.rusefi.ConfigField.BOOLEAN_T;
|
||||||
*/
|
*/
|
||||||
public class ConfigStructure {
|
public class ConfigStructure {
|
||||||
|
|
||||||
private static final String ALIGNMENT_FILL_AT = "alignmentFill_at_";
|
public static final String ALIGNMENT_FILL = "alignmentFill";
|
||||||
|
private static final String ALIGNMENT_FILL_AT = ALIGNMENT_FILL + "_at_";
|
||||||
|
|
||||||
public final String name;
|
public final String name;
|
||||||
public final String comment;
|
public final String comment;
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class TSProjectConsumer implements ConfigurationConsumer {
|
||||||
|
|
||||||
tsPosition += size;
|
tsPosition += size;
|
||||||
} else if (configField.getTsInfo() == null) {
|
} else if (configField.getTsInfo() == null) {
|
||||||
if (!configField.getName().toLowerCase().contains("alignmentFill".toLowerCase()) && !configField.getName().toLowerCase().contains("unused")) {
|
if (!configField.getName().toLowerCase().contains(ConfigStructure.ALIGNMENT_FILL.toLowerCase()) && !configField.getName().toLowerCase().contains("unused")) {
|
||||||
throw new IllegalArgumentException("Need TS info for " + configField.getName() + " at "+ prefix);
|
throw new IllegalArgumentException("Need TS info for " + configField.getName() + " at "+ prefix);
|
||||||
}
|
}
|
||||||
tsHeader.write(";no TS info - skipping " + prefix + configField.getName() + " offset " + tsPosition);
|
tsHeader.write(";no TS info - skipping " + prefix + configField.getName() + " offset " + tsPosition);
|
||||||
|
|
Loading…
Reference in New Issue