From 8acfdb97b59c9414b24d2b04b07829c68b5b57dc Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 24 Dec 2020 15:35:50 +0100 Subject: Fix ALL the bugs --- fw/src/usbd_conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fw/src/usbd_conf.c') diff --git a/fw/src/usbd_conf.c b/fw/src/usbd_conf.c index b6815e5..9d82e40 100644 --- a/fw/src/usbd_conf.c +++ b/fw/src/usbd_conf.c @@ -578,14 +578,14 @@ void USBD_LL_Delay(uint32_t Delay /* ms */) HAL_Delay(Delay); } -static USBD_HID_HandleTypeDef *static_hid_handle; +static USBD_HID_HandleTypeDef static_hid_handle; static bool static_hid_handle_allocated = false; void *USBD_static_malloc(uint32_t size) { assert(!static_hid_handle_allocated); static_hid_handle_allocated = true; - return static_hid_handle; + return &static_hid_handle; } void USBD_static_free(void *p) -- cgit