mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-03 12:30:08 +00:00
escc: Update RR0 if no character is available.
The RR0_RX_CHARACTER_AVAILABLE bit is cleared after the character is read in receive_byte, but clear it anyway in read_reg when there's no character available just in case a character that was available somehow becomes unavailable.
This commit is contained in:
parent
a18658fc16
commit
226c097b81
@ -331,7 +331,9 @@ uint8_t EsccChannel::read_reg(int reg_num)
|
||||
switch (reg_num) {
|
||||
case RR0:
|
||||
if (this->chario->rcv_char_available()) {
|
||||
this->read_regs[RR0] |= RR0_RX_CHARACTER_AVAILABLE;
|
||||
return this->read_regs[RR0] |= RR0_RX_CHARACTER_AVAILABLE;
|
||||
} else {
|
||||
return this->read_regs[RR0] &= ~RR0_RX_CHARACTER_AVAILABLE;
|
||||
}
|
||||
break;
|
||||
case RR8:
|
||||
|
Loading…
Reference in New Issue
Block a user