minor clean up
This commit is contained in:
@@ -134,7 +134,7 @@ uint8_t const * tud_descriptor_configuration_cb(uint8_t index)
|
|||||||
|
|
||||||
#if TUD_OPT_HIGH_SPEED
|
#if TUD_OPT_HIGH_SPEED
|
||||||
// Although we are highspeed, host may be fullspeed.
|
// Although we are highspeed, host may be fullspeed.
|
||||||
return (tud_speed_get() == TUSB_SPEED_HIGH ) ? desc_hs_configuration : desc_fs_configuration;
|
return (tud_speed_get() == TUSB_SPEED_HIGH) ? desc_hs_configuration : desc_fs_configuration;
|
||||||
#else
|
#else
|
||||||
return desc_fs_configuration;
|
return desc_fs_configuration;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -150,7 +150,7 @@ uint8_t const * tud_descriptor_configuration_cb(uint8_t index)
|
|||||||
|
|
||||||
#if TUD_OPT_HIGH_SPEED
|
#if TUD_OPT_HIGH_SPEED
|
||||||
// Although we are highspeed, host may be fullspeed.
|
// Although we are highspeed, host may be fullspeed.
|
||||||
return (tud_speed_get() == TUSB_SPEED_HIGH ) ? desc_hs_configuration : desc_fs_configuration;
|
return (tud_speed_get() == TUSB_SPEED_HIGH) ? desc_hs_configuration : desc_fs_configuration;
|
||||||
#else
|
#else
|
||||||
return desc_fs_configuration;
|
return desc_fs_configuration;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -149,7 +149,7 @@ uint8_t const * tud_descriptor_configuration_cb(uint8_t index)
|
|||||||
|
|
||||||
#if TUD_OPT_HIGH_SPEED
|
#if TUD_OPT_HIGH_SPEED
|
||||||
// Although we are highspeed, host may be fullspeed.
|
// Although we are highspeed, host may be fullspeed.
|
||||||
return (tud_speed_get() == TUSB_SPEED_HIGH ) ? desc_hs_configuration : desc_fs_configuration;
|
return (tud_speed_get() == TUSB_SPEED_HIGH) ? desc_hs_configuration : desc_fs_configuration;
|
||||||
#else
|
#else
|
||||||
return desc_fs_configuration;
|
return desc_fs_configuration;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -117,7 +117,7 @@ uint8_t const * tud_descriptor_configuration_cb(uint8_t index)
|
|||||||
|
|
||||||
#if TUD_OPT_HIGH_SPEED
|
#if TUD_OPT_HIGH_SPEED
|
||||||
// Although we are highspeed, host may be fullspeed.
|
// Although we are highspeed, host may be fullspeed.
|
||||||
return (tud_speed_get() == TUSB_SPEED_HIGH ) ? desc_hs_configuration : desc_fs_configuration;
|
return (tud_speed_get() == TUSB_SPEED_HIGH) ? desc_hs_configuration : desc_fs_configuration;
|
||||||
#else
|
#else
|
||||||
return desc_fs_configuration;
|
return desc_fs_configuration;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -125,7 +125,7 @@ uint8_t const * tud_descriptor_configuration_cb(uint8_t index)
|
|||||||
|
|
||||||
#if TUD_OPT_HIGH_SPEED
|
#if TUD_OPT_HIGH_SPEED
|
||||||
// Although we are highspeed, host may be fullspeed.
|
// Although we are highspeed, host may be fullspeed.
|
||||||
return (tud_speed_get() == TUSB_SPEED_HIGH ) ? desc_hs_configuration : desc_fs_configuration;
|
return (tud_speed_get() == TUSB_SPEED_HIGH) ? desc_hs_configuration : desc_fs_configuration;
|
||||||
#else
|
#else
|
||||||
return desc_fs_configuration;
|
return desc_fs_configuration;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user