mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-11 00:25:41 +00:00
support "None" pin
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user