summaryrefslogtreecommitdiff
path: root/ports/stm32/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/usb.c')
-rw-r--r--ports/stm32/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/usb.c b/ports/stm32/usb.c
index 18841fdee..8b7608a15 100644
--- a/ports/stm32/usb.c
+++ b/ports/stm32/usb.c
@@ -69,7 +69,7 @@ typedef struct _usb_device_t {
usbd_hid_itf_t usbd_hid_itf;
} usb_device_t;
-usb_device_t usb_device;
+usb_device_t usb_device = {0};
pyb_usb_storage_medium_t pyb_usb_storage_medium = PYB_USB_STORAGE_MEDIUM_NONE;
// predefined hid mouse data