mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
電源ボタンの挙動変更。
バグってました。3秒余計に計ってました。 git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@287 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
d3f0e4c614
commit
68381238c8
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#define MCU_VER_MAJOR 0x01
|
#define MCU_VER_MAJOR 0x01
|
||||||
#define MCU_VER_MINOR 0x10
|
#define MCU_VER_MINOR 13
|
||||||
|
|
||||||
|
|
||||||
#define _firm_format_v3_
|
#define _firm_format_v3_
|
||||||
|
|||||||
@ -109,7 +109,7 @@ void tsk_sw( )
|
|||||||
else if( SW_pow_count == ( HOLD_THREASHOLD ) )
|
else if( SW_pow_count == ( HOLD_THREASHOLD ) )
|
||||||
{
|
{
|
||||||
set_irq( VREG_C_IRQ0, REG_BIT_SW_POW_HOLD );
|
set_irq( VREG_C_IRQ0, REG_BIT_SW_POW_HOLD );
|
||||||
off_timeout_timer = HOLD_THREASHOLD + vreg_ctr[ VREG_C_OFF_DELAY ] * 16;
|
off_timeout_timer = vreg_ctr[ VREG_C_OFF_DELAY ] * 16;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
else if( SW_pow_count > ( HOLD_THREASHOLD + vreg_ctr[ VREG_C_OFF_DELAY ] )) // ‚¨‚æ‚» 100/SYSTEM_TICK
|
else if( SW_pow_count > ( HOLD_THREASHOLD + vreg_ctr[ VREG_C_OFF_DELAY ] )) // ‚¨‚æ‚» 100/SYSTEM_TICK
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user