RTCオフセット計算時に入力時刻の秒を0クリアしていなかったのを修正。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2454 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yosiokat 2008-09-09 10:03:23 +00:00
parent 4646decb0b
commit 5615e2af28

View File

@ -139,6 +139,9 @@ s64 UTL_CalcRTCOffset( RTCDate *newDatep, RTCTime *newTimep )
s64 offset0; s64 offset0;
s64 offset1; s64 offset1;
s64 offset; s64 offset;
u32 second_bak = newTimep->second;
newTimep->second = 0;
// RTCへの新しい値の設定 // RTCへの新しい値の設定
(void)RTC_GetDateTime( &oldDate, &oldTime ); // ライト直前に現在のRTC値を取得する。 (void)RTC_GetDateTime( &oldDate, &oldTime ); // ライト直前に現在のRTC値を取得する。
@ -164,6 +167,8 @@ s64 UTL_CalcRTCOffset( RTCDate *newDatep, RTCTime *newTimep )
OS_Printf ("offset[1] = %x\n", offset1 ); OS_Printf ("offset[1] = %x\n", offset1 );
OS_Printf ("rtcOffset = %x\n", offset ); OS_Printf ("rtcOffset = %x\n", offset );
newTimep->second = second_bak;
return offset; return offset;
} }