From d74490ed9096c1f359ce89e93a2edad71c058799 Mon Sep 17 00:00:00 2001 From: kamikawa Date: Wed, 23 Jul 2008 07:56:39 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E4=BD=93=E3=82=B7=E3=83=AA=E3=82=A2?= =?UTF-8?q?=E3=83=AB=E7=95=AA=E5=8F=B7=E3=81=AE=E3=83=81=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=82=AF=E3=82=B3=E3=83=BC=E3=83=89=E3=81=8C=E3=80=8C:?= =?UTF-8?q?=E3=80=8D=E3=81=AB=E3=81=AA=E3=82=8B=E3=81=93=E3=81=A8=E3=81=8C?= =?UTF-8?q?=E3=81=82=E3=82=8B=E4=B8=8D=E5=85=B7=E5=90=88=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1964 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/systemMenu_tools/HWInfoWriter/ARM9/src/hwi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/systemMenu_tools/HWInfoWriter/ARM9/src/hwi.c b/build/systemMenu_tools/HWInfoWriter/ARM9/src/hwi.c index 7c285ef8..19d85897 100644 --- a/build/systemMenu_tools/HWInfoWriter/ARM9/src/hwi.c +++ b/build/systemMenu_tools/HWInfoWriter/ARM9/src/hwi.c @@ -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); }