ibmpc: Return host_send when receiving
- To avoid missing key stroke during command sending - LED lock indicators can be out of sync due to this
This commit is contained in:
parent
c010a9c3ee
commit
96e722ed77
1 changed files with 7 additions and 0 deletions
|
|
@ -92,6 +92,13 @@ int16_t IBMPC::host_send(uint8_t data)
|
||||||
|
|
||||||
dprintf("w%02X ", data);
|
dprintf("w%02X ", data);
|
||||||
|
|
||||||
|
// Return when receiving data
|
||||||
|
//if (isr_state & 0x0FFF) {
|
||||||
|
if (isr_state != 0x8000) {
|
||||||
|
dprintf("isr:%04X ", isr_state);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
int_off();
|
int_off();
|
||||||
|
|
||||||
RETRY:
|
RETRY:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue