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:
parent
1d817ec202
commit
ff46c1d240
8 changed files with 11 additions and 6 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -666,6 +666,7 @@ SerialPort.prototype.saveRegisters = function()
|
|||
*
|
||||
* @this {SerialPort}
|
||||
* @param {number|string|Array} data
|
||||
* @return {boolean} true if received, false if not
|
||||
*/
|
||||
SerialPort.prototype.receiveData = function(data)
|
||||
{
|
||||
|
|
@ -681,6 +682,7 @@ SerialPort.prototype.receiveData = function(data)
|
|||
this.abReceive = this.abReceive.concat(data);
|
||||
}
|
||||
this.advanceRBR();
|
||||
return true; // for now, return true regardless, since we're buffering everything anyway
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue