Cosmetics

This commit is contained in:
Bertrand Songis
2021-01-06 17:42:00 +01:00
parent b8c8407be2
commit 7e0272dfde
@@ -131,8 +131,8 @@ __ALIGN_BEGIN uint8_t USBD_StrDesc[USB_MAX_STR_DESC_SIZ] __ALIGN_END ; // modifi
*/ */
uint8_t * USBD_USR_DeviceDescriptor( uint8_t speed , uint16_t *length) uint8_t * USBD_USR_DeviceDescriptor( uint8_t speed , uint16_t *length)
{ {
int vid = 0; int vid;
int pid = 0; int pid;
switch (getSelectedUsbMode()) { switch (getSelectedUsbMode()) {
case USB_JOYSTICK_MODE: case USB_JOYSTICK_MODE:
@@ -149,6 +149,10 @@ uint8_t * USBD_USR_DeviceDescriptor( uint8_t speed , uint16_t *length)
vid = USBD_MSC_VID; vid = USBD_MSC_VID;
pid = USBD_MSC_PID; pid = USBD_MSC_PID;
break; break;
default:
vid = 0;
pid = 0;
} }
/* USB Standard Device Descriptor */ /* USB Standard Device Descriptor */