mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
電源長押し後ちょうどいいタイミングで離すと、クリックも長押し割り込みも入らないことがある
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:
parent
f91629590c
commit
bdeac395b8
@ -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 );
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user