Correcting a bug in the initilation routine of the keyboard.

This commit is contained in:
Morten Delenk 2015-10-14 20:24:17 +02:00
parent 6719d63bce
commit 05536d138f

View file

@ -33,10 +33,10 @@ namespace MTGosHAL {
//Check for self-test being passed //Check for self-test being passed
sendCommand(0x20); sendCommand(0x20);
uint8_t ccb=inb(0x60); uint8_t ccb=inb(0x60);
if(!(ccb&4)) { if((ccb&4)) {
debug << "Keyboard didn't pass self-test!\nDeactivating IRQ1.\n";
ccb &= ~1; ccb &= ~1;
} else { } else {
debug << "Keyboard didn't pass self-test!\nDeactivating IRQ1.\n";
ccb |= 1; ccb |= 1;
} }
sendCommand(0x60); sendCommand(0x60);