forked from kofal.net/zmk
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.
This commit is contained in:
committed by
Pete Johanson
parent
50e473276f
commit
33209dee1d
@@ -54,8 +54,7 @@ void wpm_work_handler(struct k_work *work) {
|
||||
if (last_wpm_state != wpm_state) {
|
||||
LOG_DBG("Raised WPM state changed %d wpm_update_counter %d", wpm_state, wpm_update_counter);
|
||||
|
||||
ZMK_EVENT_RAISE(
|
||||
new_zmk_wpm_state_changed((struct zmk_wpm_state_changed){.state = wpm_state}));
|
||||
raise_zmk_wpm_state_changed((struct zmk_wpm_state_changed){.state = wpm_state});
|
||||
|
||||
last_wpm_state = wpm_state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user