FIX: send last report when idle timeouts. (pjrc)
This commit is contained in:
parent
1a7c3585ed
commit
cec2549505
9 changed files with 23 additions and 9 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <stdint.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include "usb_keycodes.h"
|
||||
#include "usb_keyboard.h"
|
||||
#include "usb_mouse.h"
|
||||
|
@ -58,9 +59,12 @@ void host_add_code(uint8_t code)
|
|||
|
||||
void host_swap_keyboard_report(void)
|
||||
{
|
||||
uint8_t sreg = SREG;
|
||||
cli();
|
||||
report_keyboard_t *tmp = keyboard_report_prev;
|
||||
keyboard_report_prev = keyboard_report;
|
||||
keyboard_report = tmp;
|
||||
SREG = sreg;
|
||||
}
|
||||
|
||||
void host_clear_keyboard_report(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue