Display errors only when tracing

This commit is contained in:
Raphael Assenat 2015-12-06 16:23:24 -05:00
parent 8fe9a98a11
commit db8d973b82
1 changed files with 10 additions and 1 deletions

View File

@ -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;
}