summaryrefslogtreecommitdiff
path: root/fw/src/usbd_conf.c
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2020-12-24 15:35:50 +0100
committerjaseg <git@jaseg.net>2020-12-24 15:35:50 +0100
commit8acfdb97b59c9414b24d2b04b07829c68b5b57dc (patch)
tree0c5d296add90b2ef56933b4f180c458ab853d17d /fw/src/usbd_conf.c
parent278c9c79c27276188eecc0da391e006c99704d6f (diff)
downloadminikbd-8acfdb97b59c9414b24d2b04b07829c68b5b57dc.tar.gz
minikbd-8acfdb97b59c9414b24d2b04b07829c68b5b57dc.tar.bz2
minikbd-8acfdb97b59c9414b24d2b04b07829c68b5b57dc.zip
Fix ALL the bugs
Diffstat (limited to 'fw/src/usbd_conf.c')
-rw-r--r--fw/src/usbd_conf.c4
1 files changed, 2 insertions, 2 deletions
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)