diff --git a/gcn64_protocol.c b/gcn64_protocol.c index b09df0c..a02a084 100644 --- a/gcn64_protocol.c +++ b/gcn64_protocol.c @@ -86,7 +86,16 @@ unsigned char gcn64_transaction(const unsigned char *tx, int tx_len, unsigned ch SREG = sreg; if (count == 0xff) { - printf("rx error\n"); +#ifdef TRACE_GCN64 + printf("rx error\r\n"); +#endif + return 0; + } + + if (count == 0xfe) { +#ifdef TRACE_GCN64 + printf("buffer too small\r\n"); +#endif return 0; }