bugfix: order of complexity
This commit is contained in:
parent
03d558075d
commit
9d6a7b6ee1
Binary file not shown.
|
@ -236,12 +236,12 @@ public class ConfigDefinition {
|
|||
if (state.destinations.isEmpty())
|
||||
throw new IllegalArgumentException("No destinations specified");
|
||||
|
||||
state.doJob();
|
||||
|
||||
if (pinoutLogic != null) {
|
||||
pinoutLogic.processYamls(state.variableRegistry, state);
|
||||
pinoutLogic.registerBoardSpecificPinNames(state.variableRegistry, state);
|
||||
}
|
||||
|
||||
state.doJob();
|
||||
|
||||
if (destCDefinesFileName != null) {
|
||||
ExtraUtil.writeDefinesToFile(state.variableRegistry, destCDefinesFileName, state.definitionInputFile);
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ public class PinoutLogic {
|
|||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private void processYamlFile(File yamlFile) throws IOException {
|
||||
private void readMetaInfo(File yamlFile) throws IOException {
|
||||
Yaml yaml = new Yaml();
|
||||
Map<String, Object> yamlData = yaml.load(new FileReader(yamlFile));
|
||||
if (yamlData == null) {
|
||||
|
@ -149,9 +149,9 @@ public class PinoutLogic {
|
|||
return new PinoutLogic(boardName, boardYamlFiles);
|
||||
}
|
||||
|
||||
public void processYamls(VariableRegistry registry, ReaderState state) throws IOException {
|
||||
public void registerBoardSpecificPinNames(VariableRegistry registry, ReaderState state) throws IOException {
|
||||
for (File yamlFile : boardYamlFiles) {
|
||||
processYamlFile(yamlFile);
|
||||
readMetaInfo(yamlFile);
|
||||
}
|
||||
registerPins(globalList, registry, state);
|
||||
|
||||
|
|
Loading…
Reference in New Issue