mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
TSで起動不能になってしまうのを修正
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@184 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
df8bf313d6
commit
22e433f0dc
@ -947,6 +947,12 @@ void BT_get_left(){
|
|||||||
static u8 bt_voltage_low_count; // 電圧でシャットダウンさせる
|
static u8 bt_voltage_low_count; // 電圧でシャットダウンさせる
|
||||||
u8 temp[2];
|
u8 temp[2];
|
||||||
|
|
||||||
|
if( system_status.model == MODEL_TS_BOARD )
|
||||||
|
{
|
||||||
|
vreg_ctr[ VREG_C_BT_REMAIN ] = 99;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
// 電池電圧で強制断が優先される
|
// 電池電圧で強制断が優先される
|
||||||
temp[0] = iic_mcu_read_a_byte( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_VCELL );
|
temp[0] = iic_mcu_read_a_byte( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_VCELL );
|
||||||
if( iic_mcu_bus_status == ERR_SUCCESS )
|
if( iic_mcu_bus_status == ERR_SUCCESS )
|
||||||
@ -988,6 +994,7 @@ void BT_get_left(){
|
|||||||
set_irq( VREG_C_IRQ1, REG_BIT_BT_REMAIN );
|
set_irq( VREG_C_IRQ1, REG_BIT_BT_REMAIN );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 残量で割り込み
|
// 残量で割り込み
|
||||||
switch( bt_left_state )
|
switch( bt_left_state )
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user