a step back

This commit is contained in:
rusefillc 2022-07-12 06:43:47 -04:00
parent e0cff09dd6
commit 1569a14821
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View File

@ -85,6 +85,7 @@ public class PinoutLogic {
EnumsReader.EnumState enumList = state.enumsReader.getEnums().get(pinType);
EnumPair pair = enumToOptionsList(nothingName, enumList, kv.getValue());
if (pair.getSimpleForm().length() > 0) {
// we seem to be here if specific pin category like switch_inputs has no pins
registry.register(outputEnumName + ENUM_SUFFIX, pair.getShorterForm());
parseState.addDefinition(outputEnumName + ENUM_SUFFIX, pair.getShorterForm(), Definition.OverwritePolicy.IgnoreNew);
}