Hack to make newlines on the serial port work
This commit is contained in:
parent
67f7909fe1
commit
3adc415471
1 changed files with 3 additions and 0 deletions
|
@ -205,6 +205,9 @@ consoleintr(int (*getc)(void))
|
|||
break;
|
||||
default:
|
||||
if(c != 0 && input.e-input.r < INPUT_BUF){
|
||||
// The serial port produces 0x13, not 0x10
|
||||
if(c == '\r')
|
||||
c = '\n';
|
||||
input.buf[input.e++ % INPUT_BUF] = c;
|
||||
consputc(c);
|
||||
if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){
|
||||
|
|
Loading…
Reference in a new issue