forked from espressif/esp-idf
tinyusb: removed set-but-never-used global variable tusb_desc_set
This commit is contained in:
committed by
Anton Maklakov
parent
336d0b64de
commit
771f5d32eb
@@ -48,7 +48,6 @@ enum {
|
||||
CFG_TUD_HID * TUD_HID_DESC_LEN
|
||||
};
|
||||
|
||||
bool tusb_desc_set;
|
||||
void tusb_set_descriptor(tusb_desc_device_t *desc, const char **str_desc);
|
||||
tusb_desc_device_t *tusb_get_active_desc(void);
|
||||
char **tusb_get_active_str_desc(void);
|
||||
|
@@ -171,7 +171,6 @@ void tusb_set_descriptor(tusb_desc_device_t *dev_desc, const char **str_desc)
|
||||
memcpy(s_str_descriptor, str_desc,
|
||||
sizeof(s_str_descriptor[0])*USB_STRING_DESCRIPTOR_ARRAY_SIZE);
|
||||
}
|
||||
tusb_desc_set = true;
|
||||
}
|
||||
|
||||
tusb_desc_device_t *tusb_get_active_desc(void)
|
||||
@@ -188,5 +187,4 @@ void tusb_clear_descriptor(void)
|
||||
{
|
||||
memset(&s_descriptor, 0, sizeof(s_descriptor));
|
||||
memset(&s_str_descriptor, 0, sizeof(s_str_descriptor));
|
||||
tusb_desc_set = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user