change DESKTOP_TIMER_INERTVAL to 10 ticks to handle auto repeat messages

This commit is contained in:
Vincent Wei
2020-03-06 21:51:50 +08:00
parent f0414cddc1
commit f8b8e1b5fe

View File

@@ -183,7 +183,7 @@ enum {
#define USEC_10MS 10000UL
#define USEC_TIMEOUT 300000UL // 300ms
#define MAX_IDLE_COUNTER (USEC_TIMEOUT/USEC_10MS)
#define DESKTOP_TIMER_INERTVAL 50UL // every 50 ticks, 500ms
#define DESKTOP_TIMER_INERTVAL 10UL // every 10 ticks, 100ms
/* round n to multiple of m */
#define ROUND_TO_MULTIPLE(n, m) (((n) + (((m) - 1))) & ~((m) - 1))