fixing things

This commit is contained in:
rusefillc 2023-02-11 15:20:10 -05:00
parent 32b372a100
commit cfa80fd7f1
3 changed files with 6 additions and 4 deletions

Binary file not shown.

View File

@ -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;
}
}

View File

@ -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);