mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
>歩数計バグ修正
>・内部で年の比較を誤っていた。2021年にバグが発覚するのを回避できた 変換に使う関数が反対でした git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@315 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
5b2e9e1a07
commit
76a167bc8e
BIN
trunk/hoge.bin
BIN
trunk/hoge.bin
Binary file not shown.
@ -500,9 +500,9 @@ static unsigned long my_sqrt(unsigned long x)
|
||||
======================================================== */
|
||||
static u16 calc_hours_spend( u8 year )
|
||||
{
|
||||
u8 temp_arg_year_bcd = bcdtob( year );
|
||||
u8 temp_arg_year_bcd = btobcd( year );
|
||||
|
||||
// 同じ年の内
|
||||
// 同じ年の内
|
||||
if( cal_log_latest.year_bcd == temp_arg_year_bcd )
|
||||
{
|
||||
if( now_longhour > last_hour_fny )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user