電源長押し後ちょうどいいタイミングで離すと、クリックも長押し割り込みも入らないことがある

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@79 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
N2614 2010-01-08 02:25:43 +00:00
parent f91629590c
commit bdeac395b8

View File

@ -92,7 +92,7 @@ void tsk_sw( )
// 電源スイッチの監視 //
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 );
}