|
|
@ -24,7 +24,7 @@ |
|
|
|
static hand_acid_mode_t g_hand_acid_mode; |
|
|
|
static hand_pump_working_state_t g_hand_pump_working_state; |
|
|
|
static bool g_connected; |
|
|
|
static int32_t m_longpress_trigger_time = 2000; |
|
|
|
static int32_t m_longpress_trigger_time = 500; |
|
|
|
static int32_t m_last_usr_operation_time = 0; |
|
|
|
|
|
|
|
// static void testlight_state(int val) { |
|
|
@ -106,8 +106,8 @@ void one_conduction_process_rx_packet(uint8_t* rx, int len) { |
|
|
|
send_success_receipt(txheader); |
|
|
|
} else if (kproto_cmd_setlong_key_delayms == cmd) { |
|
|
|
uint32_t longkeydelay = rxheader->data.setlong_key_delayms.longkeydelay; |
|
|
|
if (longkeydelay < 1000) { |
|
|
|
longkeydelay = 1000; |
|
|
|
if (longkeydelay < 500) { |
|
|
|
longkeydelay = 500; |
|
|
|
} |
|
|
|
m_longpress_trigger_time = longkeydelay; |
|
|
|
ZLOGI("set long key delay:%d", m_longpress_trigger_time); |
|
|
|