Skip to content

Commit ccbe557

Browse files
committed
removed leftover debugging bits
1 parent d434635 commit ccbe557

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ports/atmel-samd/usb.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
*/
2626

2727
#include "usb.h"
28-
#include <stdio.h>
2928

3029
#include <stdint.h>
3130

@@ -50,7 +49,6 @@
5049
#include "usb_mass_storage.h"
5150

5251
#include "supervisor/shared/autoreload.h"
53-
#include "supervisor/serial.h"
5452

5553
// Store received characters on our own so that we can filter control characters
5654
// and act immediately on CTRL-C for example.
@@ -128,7 +126,7 @@ static bool read_complete(const uint8_t ep, const enum usb_xfer_code rc, const u
128126
atomic_leave_critical(&flags);
129127
return true;
130128
}
131-
129+
132130
for (uint16_t i = 0; i < count; i++) {
133131
uint8_t c = cdc_packet_buffer[i];
134132
if (c == mp_interrupt_char) {
@@ -152,15 +150,15 @@ static bool read_complete(const uint8_t ep, const enum usb_xfer_code rc, const u
152150
}
153151
}
154152
atomic_leave_critical(&flags);
155-
153+
156154
// Trigger a follow up read if we have space.
157155
/*if (usb_rx_count < USB_RX_BUF_SIZE - 64) {
158156
int32_t result = start_read();
159157
if (result != ERR_NONE) {
160158
return true;
161159
}
162160
}*/
163-
161+
164162
/* No error. */
165163
return false;
166164
}
@@ -283,7 +281,7 @@ int usb_read(void) {
283281
/*if (!pending_read && usb_rx_count == USB_RX_BUF_SIZE - 1) {
284282
start_read();
285283
}*/
286-
284+
287285
return data;
288286
}
289287

0 commit comments

Comments
 (0)