1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2024-12-21 23:08:53 -05:00

Display errors only when tracing

This commit is contained in:
Raphael Assenat 2015-12-06 16:23:24 -05:00
parent 8fe9a98a11
commit db8d973b82

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