mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-07 19:37:00 +08:00
change DESKTOP_TIMER_INERTVAL to 10 ticks to handle auto repeat messages
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user