本体シリアル番号のチェックコードが「:」になることがある不具合を修正。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1964 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
kamikawa 2008-07-23 07:56:39 +00:00
parent 1925b6c639
commit d74490ed90

View File

@ -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);
}