mirror of https://github.com/rusefi/rusefi.git
fixing things
This commit is contained in:
parent
32b372a100
commit
cfa80fd7f1
Binary file not shown.
|
@ -145,10 +145,8 @@ public class ConfigDefinition {
|
|||
case KEY_BOARD_NAME:
|
||||
String boardName = args[i + 1];
|
||||
pinoutLogic = PinoutLogic.create(boardName);
|
||||
if (pinoutLogic != null) {
|
||||
for (String inputFile : pinoutLogic.getInputFiles())
|
||||
state.addInputFile(inputFile);
|
||||
}
|
||||
for (String inputFile : pinoutLogic.getInputFiles())
|
||||
state.addInputFile(inputFile);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -195,6 +195,10 @@ public class PinoutLogic {
|
|||
}
|
||||
|
||||
public void registerBoardSpecificPinNames(VariableRegistry registry, DefinitionsState parseState, EnumsReader enumsReader) throws IOException {
|
||||
if (boardInputs.getBoardYamlKeys().isEmpty()) {
|
||||
// we have a board without yaml so no reason to generate board-specific .cpp file
|
||||
return;
|
||||
}
|
||||
readFiles();
|
||||
registerPins(boardInputs.getName(), globalList, registry, parseState, enumsReader);
|
||||
|
||||
|
|
Loading…
Reference in New Issue