1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Added missing switch matrix formula for PRDecode().

This commit is contained in:
Adam Preble
2009-05-31 17:29:03 -04:00
parent c91d32dc3f
commit cd1d74db81

View File

@@ -254,6 +254,8 @@ PR_EXPORT uint16_t PRDecode(PRMachineType machineType, const char *str)
case 'F': case 'F':
case 'f': case 'f':
return (str[2]-'0') - 1; return (str[2]-'0') - 1;
default:
return 32 + 16 * ((x / 10) - 1) + ((x % 10) - 1);
} }
} }
} }