Revision 50
Fixed polling minor issue; refactor code
lab3.c | ||
---|---|---|
85 | 85 |
uint8_t c[2]; uint8_t size; |
86 | 86 |
do{ |
87 | 87 |
if(kbd_poll(c, &size)) return 1; |
88 |
if(kbd_print_scancode((~c[0])&BREAK_CODE_BIT, size, c)) return 1;
|
|
88 |
if(kbd_print_scancode((~c[size-1])&BREAK_CODE_BIT, size, c)) return 1;
|
|
89 | 89 |
}while(!(size == 1 && c[0] == ESC_BREAK_CODE)); |
90 | 90 |
|
91 | 91 |
if(kbc_restore_kbd()) return 1; |
Also available in: Unified diff