diff options
Diffstat (limited to 'fw/src/usbd_conf.c')
-rw-r--r-- | fw/src/usbd_conf.c | 4 |
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)
|