Skip to content

Commit 904e94a

Browse files
committed
make declatations of usb_msc_ routines conditional
.. as suggested by @dhalbert
1 parent 5a0e994 commit 904e94a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

supervisor/usb.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ void usb_init(void);
5454
void usb_disconnect(void);
5555

5656
// Propagate plug/unplug events to the MSC logic.
57+
#if CIRCUITPY_USB_MSC
5758
void usb_msc_mount(void);
5859
void usb_msc_umount(void);
5960
bool usb_msc_ejected(void);
61+
#endif
6062

6163
#endif // MICROPY_INCLUDED_SUPERVISOR_USB_H

0 commit comments

Comments
 (0)