diff options
| -rw-r--r-- | wirish/include/wirish/boards.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wirish/include/wirish/boards.h b/wirish/include/wirish/boards.h index 2d77480..693c739 100644 --- a/wirish/include/wirish/boards.h +++ b/wirish/include/wirish/boards.h @@ -167,8 +167,11 @@ bool boardUsesPin(uint8 pin); /** * @brief Feature test: nonzero iff the board has SerialUSB. */ +#ifndef BOARD_HAVE_USB #define BOARD_HAVE_USB (defined(BOARD_USB_DISC_DEV) && \ defined(BOARD_USB_DISC_BIT)) +#endif + #define BOARD_HAVE_SERIALUSB (BOARD_HAVE_USB && \ ((defined(USB_TYPE) && USB_TYPE == USB_SERIAL) || \ !defined(USB_TYPE))) |
