support "None" pin

This commit is contained in:
openshwprojects
2023-05-05 12:16:53 +02:00
parent 604aa0ff76
commit 696dc6fa5a

View File

@ -469,6 +469,10 @@ const char* PIN_RoleToString(int role) {
int PIN_ParsePinRoleName(const char* name) {
int i;
if (!stricmp(name, "None")) {
return IOR_None;
}
for (i = 0; i < IOR_Total_Options; i++) {
if (!stricmp(name, htmlPinRoleNames[i]))
return i;