mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
本体シリアル番号のチェックコードが「:」になることがある不具合を修正。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1964 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
1925b6c639
commit
d74490ed90
@ -676,7 +676,10 @@ static u8 HWIi_CalcCheckCode(u8 src[8])
|
||||
(src[1] - '0')*3 +
|
||||
(src[0] - '0')*1;
|
||||
temp %= 10;
|
||||
temp = 10-temp;
|
||||
if (temp > 0)
|
||||
{
|
||||
temp = 10-temp;
|
||||
}
|
||||
|
||||
return (u8)('0' + temp);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user