Skip to content

Commit

Permalink
Fix broken usb_init_serialnumber() linking after C++ compiler switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
forderud committed Sep 23, 2024
1 parent 6e7a16a commit c08fcb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teensy4/usb_desc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,7 @@ PROGMEM const struct usb_string_descriptor_struct usb_string_mtp = {
};
#endif

void usb_init_serialnumber(void)
extern "C" void usb_init_serialnumber(void)
{
char buf[11];
uint32_t i, num;
Expand Down

0 comments on commit c08fcb3

Please sign in to comment.