Skip to content

Commit

Permalink
more descriptive USBD_PRODUCT_STRING when not defined in target.h
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Jul 9, 2024
1 parent 560cdd7 commit 3533b6b
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 3533b6b

Please sign in to comment.