mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
電源ボタンクリックもHomeボタンクリックと同様に修正
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@73 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
c73799ebe4
commit
97607f90f3
@ -92,7 +92,7 @@ void tsk_sw( )
|
|||||||
// 電源スイッチの監視 //
|
// 電源スイッチの監視 //
|
||||||
if( SW_POW_n )
|
if( SW_POW_n )
|
||||||
{
|
{
|
||||||
if( ( CLICK_THRESHOLD < SW_pow_count ) && ( SW_pow_count < HOLD_THREASHOLD ) )
|
if( ( CLICK_THRESHOLD < SW_pow_count ) && ( SW_pow_count <= HOLD_THREASHOLD ) )
|
||||||
{
|
{
|
||||||
set_irq( VREG_C_IRQ0, REG_BIT_SW_POW_CLICK );
|
set_irq( VREG_C_IRQ0, REG_BIT_SW_POW_CLICK );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user