From: Brett Gordon Date: Mon, 28 Sep 2015 02:19:16 +0000 (-0400) Subject: remove DW's \n and \r handling. (isn't needed) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=462ee298e541e6263dd8f37e11e212168b99284b;p=FUZIX.git remove DW's \n and \r handling. (isn't needed) --- diff --git a/Kernel/platform-coco3/ttydw.c b/Kernel/platform-coco3/ttydw.c index 19f10520..cd99ae02 100644 --- a/Kernel/platform-coco3/ttydw.c +++ b/Kernel/platform-coco3/ttydw.c @@ -164,10 +164,6 @@ void dw_putc( uint8_t minor, unsigned char c ){ buf[0]=DW_FASTWRITE | dw_port( minor ) ; buf[1]=c; dw_transaction( buf, 2, NULL, 0 ); - if( c == '\n' ){ - c='\r'; - dw_transaction( buf,2, NULL, 0 ); - } } @@ -229,7 +225,6 @@ void dw_vpoll( ){ /* VSER Channel single datum */ if( buf[0]<16 ){ int minor=dw_minor( buf[0] ); - if( buf[1]!= '\r' ) tty_inproc( minor, buf[1] ); continue; } @@ -245,16 +240,16 @@ void dw_vpoll( ){ /* VSER channel multiple data */ if( buf[0] < 32 ){ int i; - char b[3]; + unsigned char b[3]; char c; int minor=dw_minor( buf[0]-17 ); b[0]=DW_SERREADM; b[1]=buf[0]-17; - b[2]=mini( buf[1], qfree( minor )-1 ); + b[2]=mini( buf[1], 16 ); dw_transaction( b,3,tbuf, b[2] ); for( i=0; i