Skip to content
Snippets Groups Projects
Commit 3adc4154 authored by Austin Clements's avatar Austin Clements
Browse files

Hack to make newlines on the serial port work

parent 67f7909f
No related branches found
No related tags found
No related merge requests found
......@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment