tinyusb: removed set-but-never-used global variable tusb_desc_set

This commit is contained in:
Ivan Grokhotkov
2022-01-14 18:08:09 +01:00
committed by Anton Maklakov
parent 336d0b64de
commit 771f5d32eb
2 changed files with 0 additions and 3 deletions

View File

@@ -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);

View File

@@ -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;
}