summaryrefslogtreecommitdiff
path: root/platforms/avr
diff options
context:
space:
mode:
authorAndrew Dunai <a@dun.ai>2022-05-31 09:15:17 +0300
committerGitHub <noreply@github.com>2022-05-30 23:15:17 -0700
commitecce9900c9cecfb095a9eb041af32eab26b44c1e (patch)
tree2e811aaa0d4ae44f98017de887ab0dec1ea0a9e4 /platforms/avr
parentd44a950c107492b801d567a507e2213376e7f47c (diff)
downloadqmk_firmware-ecce9900c9cecfb095a9eb041af32eab26b44c1e.tar.gz
qmk_firmware-ecce9900c9cecfb095a9eb041af32eab26b44c1e.zip
Improve PS/2 mouse performance (#17111)
Diffstat (limited to 'platforms/avr')
-rw-r--r--platforms/avr/drivers/ps2/ps2_usart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/avr/drivers/ps2/ps2_usart.c b/platforms/avr/drivers/ps2/ps2_usart.c
index 39ec930d4a..581badac64 100644
--- a/platforms/avr/drivers/ps2/ps2_usart.c
+++ b/platforms/avr/drivers/ps2/ps2_usart.c
@@ -72,8 +72,8 @@ uint8_t ps2_error = PS2_ERR_NONE;
static inline uint8_t pbuf_dequeue(void);
static inline void pbuf_enqueue(uint8_t data);
-static inline bool pbuf_has_data(void);
static inline void pbuf_clear(void);
+bool pbuf_has_data(void);
void ps2_host_init(void) {
idle(); // without this many USART errors occur when cable is disconnected
@@ -212,7 +212,7 @@ static inline uint8_t pbuf_dequeue(void) {
return val;
}
-static inline bool pbuf_has_data(void) {
+bool pbuf_has_data(void) {
uint8_t sreg = SREG;
cli();
bool has_data = (pbuf_head != pbuf_tail);