mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
歩数計を各レコード 2バイトに
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@26 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
55ef3eee63
commit
10e2a9b12c
@ -49,7 +49,7 @@
|
||||
#define VREG_BITMASK_ACC_CONF_ACQ ( 1 << 0 )
|
||||
|
||||
// ========================================================
|
||||
static u8 hyst_pedometer[256];
|
||||
static u16 hyst_pedometer[256];
|
||||
|
||||
|
||||
// ========================================================
|
||||
|
||||
@ -233,7 +233,16 @@ u8 vreg_ctr_read( u8 adrs )
|
||||
{
|
||||
return( vreg_ctr[ VREG_C_MCU_STATUS ] | ( ( vreg_twl[ REG_TWL_INT_ADRS_MODE ] & 0x03 ) << 6 ) );
|
||||
}
|
||||
return ( vreg_ctr[adrs] );
|
||||
#ifdef _debug_
|
||||
if( adrs >= VREG_C_ENDMARK_ )
|
||||
{
|
||||
return( 0xEE );
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
return ( vreg_ctr[adrs] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user