zero init internal class/device data

This commit is contained in:
hathach
2019-01-29 19:39:34 +07:00
parent e4e8413acc
commit 59c1b4b427
5 changed files with 11 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ typedef struct {
}usbd_device_t;
static usbd_device_t _usbd_dev;
static usbd_device_t _usbd_dev = { 0 };
// Auto descriptor is enabled, descriptor set point to auto generated one
#if CFG_TUD_DESC_AUTO