Inactivity timer reset on Keys and Trims press
This commit is contained in:
@@ -150,6 +150,7 @@ void Key::input(bool val, EnumKeys enuk)
|
|||||||
//fallthrough
|
//fallthrough
|
||||||
case KSTATE_START:
|
case KSTATE_START:
|
||||||
putEvent(EVT_KEY_FIRST(enuk));
|
putEvent(EVT_KEY_FIRST(enuk));
|
||||||
|
inacCounter = 0;
|
||||||
m_dblcnt++;
|
m_dblcnt++;
|
||||||
m_state = KSTATE_RPTDELAY;
|
m_state = KSTATE_RPTDELAY;
|
||||||
m_cnt = 0;
|
m_cnt = 0;
|
||||||
|
|||||||
@@ -400,6 +400,7 @@ enum EnumKeys {
|
|||||||
#define PROT_MAX 3
|
#define PROT_MAX 3
|
||||||
|
|
||||||
extern uint8_t heartbeat;
|
extern uint8_t heartbeat;
|
||||||
|
extern uint32_t inacCounter;
|
||||||
|
|
||||||
#if defined(PXX)
|
#if defined(PXX)
|
||||||
extern uint8_t pxxFlag;
|
extern uint8_t pxxFlag;
|
||||||
|
|||||||
Reference in New Issue
Block a user