電源ボタンクリックも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:
N2614 2009-12-29 00:01:55 +00:00
parent c73799ebe4
commit 97607f90f3

View File

@ -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 );
} }