diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/button.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 12a1ad0cf8..403b521db0 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -115,13 +115,13 @@ static bool button_try_post(int button, int data) | |||
115 | /* one can swipe over the scren very quickly, | 115 | /* one can swipe over the scren very quickly, |
116 | * for this to work we want to forget about old presses and | 116 | * for this to work we want to forget about old presses and |
117 | * only respect the very latest ones */ | 117 | * only respect the very latest ones */ |
118 | const int force_post = true; | 118 | const bool force_post = true; |
119 | #else | 119 | #else |
120 | /* Only post events if the queue is empty, | 120 | /* Only post events if the queue is empty, |
121 | * to avoid afterscroll effects. | 121 | * to avoid afterscroll effects. |
122 | * i.e. don't post new buttons if previous ones haven't been | 122 | * i.e. don't post new buttons if previous ones haven't been |
123 | * processed yet */ | 123 | * processed yet - but always post releases */ |
124 | const int force_post = false; | 124 | const bool force_post = button & BUTTON_REL; |
125 | #endif | 125 | #endif |
126 | 126 | ||
127 | bool ret = queue_empty(&button_queue); | 127 | bool ret = queue_empty(&button_queue); |