File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6262
6363#if !(defined(BOARD_maple ) || defined(BOARD_maple_RET6 ) || \
6464 defined(BOARD_maple_mini ) || defined(BOARD_maple_native ))
65- #warning USB CDC ACM relies on LeafLabs board-specific configuration.\
66- You may have problems on non-LeafLabs boards.
65+ // #warning USB CDC ACM relies on LeafLabs board-specific configuration.\
66+ // You may have problems on non-LeafLabs boards.
6767#endif
6868
6969static void vcomDataTxCb (void );
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ void USBSerial::begin(void) {
7171 return ;
7272 _hasBegun = true ;
7373
74- usb_cdcacm_enable (BOARD_USB_DISC_DEV, BOARD_USB_DISC_BIT);
74+ usb_cdcacm_enable (BOARD_USB_DISC_DEV, ( uint8_t ) BOARD_USB_DISC_BIT);
7575 usb_cdcacm_set_hooks (USB_CDCACM_HOOK_RX, rxHook);
7676 usb_cdcacm_set_hooks (USB_CDCACM_HOOK_IFACE_SETUP, ifaceSetupHook);
7777#endif
@@ -97,7 +97,7 @@ volatile uint8_t removeCompilerWarningsIgnore=ignore;
9797
9898void USBSerial::end (void ) {
9999#if BOARD_HAVE_SERIALUSB
100- usb_cdcacm_disable (BOARD_USB_DISC_DEV, BOARD_USB_DISC_BIT);
100+ usb_cdcacm_disable (BOARD_USB_DISC_DEV, ( uint8_t ) BOARD_USB_DISC_BIT);
101101 usb_cdcacm_remove_hooks (USB_CDCACM_HOOK_RX | USB_CDCACM_HOOK_IFACE_SETUP);
102102 _hasBegun = false ;
103103#endif
You can’t perform that action at this time.
0 commit comments