diff options
| -rw-r--r-- | core/conio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/conio.c b/core/conio.c index 3b8a103b..3d594853 100644 --- a/core/conio.c +++ b/core/conio.c @@ -161,8 +161,8 @@ __export int pollchar(void) /* Already-queued input? */ if (SerialTail == SerialHead) { /* LSR */ - data = !(inb(SerialPort + 5) & 1); - if (!data) { + data = inb(SerialPort + 5) & 1; + if (data) { /* MSR */ data = inb(SerialPort + 6); @@ -173,8 +173,7 @@ __export int pollchar(void) data = 1; else data = 0; - } else - data = 1; + } } else data = 1; sti(); |
