Updated receiveData() to always return true in both PCx86 and PC8080, since both machines are buffering all the incoming data anyway (since we still don't have any flow-control interfaces yet)

This commit is contained in:
Jeff Parsons 2016-08-19 08:42:33 -07:00
commit ff46c1d240
8 changed files with 11 additions and 6 deletions

View file

@ -623,6 +623,7 @@ SerialPort8080.prototype.receiveByte = function(b)
*
* @this {SerialPort8080}
* @param {number|string|undefined} [data]
* @return {boolean} true if received, false if not
*/
SerialPort8080.prototype.receiveData = function(data)
{
@ -641,6 +642,7 @@ SerialPort8080.prototype.receiveData = function(data)
this.cpu.setTimer(this.timerReceiveNext, this.getBaudTimeout(SerialPort8080.UART8251.BAUDRATES.RECV_RATE));
}
}
return true; // for now, return true regardless, since we're buffering everything anyway
};
/**