Revision 39
fixed frozen keyboard
lab3.c | ||
---|---|---|
98 | 98 |
}while(!(size == 1 && c[0] == ESC_BREAK_CODE)); |
99 | 99 |
|
100 | 100 |
uint8_t cmd = 0; |
101 |
if(kbd_read_cmd(&cmd)) return 1;
|
|
102 |
printf("%x\n", cmd);
|
|
101 |
if(kbc_read_cmd(&cmd)) return 1;
|
|
102 |
cmd = (cmd | INT_KBD) & (~DIS_KBD);
|
|
103 | 103 |
|
104 |
if(kbc_change_cmd(cmd)) return 1; |
|
105 |
|
|
104 | 106 |
return 0; |
105 | 107 |
} |
106 | 108 |
|
Also available in: Unified diff