]> Joshua Wise's Git repositories - netwatch.git/blobdiff - lib/serial.c
Ass.
[netwatch.git] / lib / serial.c
index 0cbb495b2a0a2ea00d0a1259e6d134329f53c1a2..6043db247d3db6ad8b8c83be942bd8c415f978f4 100644 (file)
@@ -44,7 +44,9 @@ void serial_init()
 
 void serial_tx(unsigned char c)
 {
-       while (!(_inb(SER_LSR) & SER_LSR_THR_EMPTY))
+       int i = 100000;
+       
+       while (!(_inb(SER_LSR) & SER_LSR_THR_EMPTY) && (i--))
                ;
        _outb(SER_THR, c);
 }
This page took 0.026839 seconds and 4 git commands to generate.