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:
@@ -254,6 +254,8 @@ PR_EXPORT uint16_t PRDecode(PRMachineType machineType, const char *str)
|
||||
case 'F':
|
||||
case 'f':
|
||||
return (str[2]-'0') - 1;
|
||||
default:
|
||||
return 32 + 16 * ((x / 10) - 1) + ((x % 10) - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user