From 0e4dd992ee28e05d3df9e5b74127ae48de9e51a8 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 12 Sep 2005 19:21:08 +0000 Subject: [PATCH] Fixed problem that was not our problem (but in remote testsystem) --- mbcico/binkp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mbcico/binkp.c b/mbcico/binkp.c index 42ecea6d..0b6dbc4b 100644 --- a/mbcico/binkp.c +++ b/mbcico/binkp.c @@ -95,7 +95,7 @@ typedef enum {CompNone, CompGZ, CompBZ2, CompPLZ} CompType; typedef enum {CompNone, CompPLZ} CompType; #endif -static char *txstate[] = { (char *)"TxGNF", (char *)"TxTryR", (char *)"TxReadS", (char *)"TxWLA", (char *)"TxDone" }; +// static char *txstate[] = { (char *)"TxGNF", (char *)"TxTryR", (char *)"TxReadS", (char *)"TxWLA", (char *)"TxDone" }; static char *rxstate[] = { (char *)"RxWaitF", (char *)"RxAccF", (char *)"RxReceD", (char *)"RxWriteD", (char *)"RxEOB", (char *)"RxDone" }; static char *opstate[] = { (char *)"No", (char *)"Can", (char *)"Want", (char *)"Active" }; @@ -1076,7 +1076,7 @@ TrType binkp_receiver(void) char *buf = bp.rxbuf; #endif - Syslog('b', "Binkp: receiver %s", rxstate[bp.RxState]); +// Syslog('b', "Binkp: receiver %s", rxstate[bp.RxState]); if (bp.RxState == RxWaitF) { @@ -1466,7 +1466,7 @@ TrType binkp_transmitter(void) file_list *tsl; static binkp_list *tmp; - Syslog('b', "Binkd: transmitter %s", txstate[bp.TxState]); +// Syslog('b', "Binkd: transmitter %s", txstate[bp.TxState]); if (bp.TxState == TxGNF) { /* @@ -2336,12 +2336,15 @@ int binkp_poll_frame(void) rc = -1; break; } else { +// Syslog('b', "c=%02x %c rxlen=%d", c, isprint(c) ? c : '.', bp.rxlen); switch (bp.rxlen) { case 0: bp.header = c << 8; rc = 0; +// Syslog('b', "Binkp: 1st %02x", c); break; case 1: bp.header += c; rc = 0; +// Syslog('b', "Binkp: 2nd %02x", c); break; default:bp.rxbuf[bp.rxlen-2] = c; }