Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more descriptive USBD_PRODUCT_STRING when not defined in target.h #1073

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/main/vcpf4/usbd_desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@
#define USBD_LANGID_STRING 0x409
#define USBD_MANUFACTURER_STRING FC_FIRMWARE_NAME

#ifndef USBD_PRODUCT_STRING
#if defined STM32F1
#define USBD_PRODUCT_STRING "EmuFlight STM32F1"
#elif defined STM32F3
#define USBD_PRODUCT_STRING "EmuFlight STM32F3"
#elif defined STM32F4
#define USBD_PRODUCT_STRING "EmuFlight STM32F4"
#elif defined STM32F7
#define USBD_PRODUCT_STRING "EmuFlight STM32F7"
#endif
#endif

#ifdef USBD_PRODUCT_STRING
#define USBD_PRODUCT_HS_STRING USBD_PRODUCT_STRING
#define USBD_PRODUCT_FS_STRING USBD_PRODUCT_STRING
Expand Down
Loading