Display errors only when tracing
This commit is contained in:
parent
8fe9a98a11
commit
db8d973b82
|
@ -86,7 +86,16 @@ unsigned char gcn64_transaction(const unsigned char *tx, int tx_len, unsigned ch
|
||||||
SREG = sreg;
|
SREG = sreg;
|
||||||
|
|
||||||
if (count == 0xff) {
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue