Skip to content

Commit 7aa5371

Browse files
USB_NCM: Add weak definition to fix build when not using NCM
1 parent 57f3700 commit 7aa5371

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cores/rp2040/USB.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,12 @@ extern "C" void tud_msc_inquiry_cb(uint8_t lun, uint8_t vendor_id[8], uint8_t pr
610610
product_rev[0] = 0;
611611
}
612612

613-
613+
extern "C" bool tud_network_recv_cb(const uint8_t *src, uint16_t size) __attribute__((weak));
614+
extern "C" bool tud_network_recv_cb(const uint8_t *src, uint16_t size) {
615+
(void) src;
616+
(void) size;
617+
return false;
618+
}
614619

615620
#ifdef ENABLE_PICOTOOL_USB
616621
// Support for Microsoft OS 2.0 descriptor

0 commit comments

Comments
 (0)