diff options
author | Peter Johanson <[email protected]> | 2023-03-23 08:56:02 +0000 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2024-01-14 11:13:57 -0800 |
commit | 33209dee1d3b0feb6486692704a1a1ce0f073c68 (patch) | |
tree | 59e41a54f8548405c64b717720e9c873b49bd391 /app/src/usb.c | |
parent | 50e473276f2e8d681c776fdf2fe6c6d2ac9a2ce7 (diff) | |
download | zmk-33209dee1d3b0feb6486692704a1a1ce0f073c68.tar.gz zmk-33209dee1d3b0feb6486692704a1a1ce0f073c68.zip |
refactor(core): Move to stack allocated events.
* Move to local/stack allocated event API that doesn't require
dynamic allocation/freeing.
* Disable heap, we no longer use alloc/free unless using LVGL.
* Tons of refactors all over to account for the new event approach.
Diffstat (limited to 'app/src/usb.c')
-rw-r--r-- | app/src/usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/usb.c b/app/src/usb.c index 98b48bfe9e..dbfece7656 100644 --- a/app/src/usb.c +++ b/app/src/usb.c @@ -22,8 +22,8 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); static enum usb_dc_status_code usb_status = USB_DC_UNKNOWN; static void raise_usb_status_changed_event(struct k_work *_work) { - ZMK_EVENT_RAISE(new_zmk_usb_conn_state_changed( - (struct zmk_usb_conn_state_changed){.conn_state = zmk_usb_get_conn_state()})); + raise_zmk_usb_conn_state_changed( + (struct zmk_usb_conn_state_changed){.conn_state = zmk_usb_get_conn_state()}); } K_WORK_DEFINE(usb_status_notifier_work, raise_usb_status_changed_event); |