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
@@ -43,8 +43,8 @@ static uint32_t activity_last_uptime;
|
||||
#endif
|
||||
|
||||
int raise_event(void) {
|
||||
return ZMK_EVENT_RAISE(new_zmk_activity_state_changed(
|
||||
(struct zmk_activity_state_changed){.state = activity_state}));
|
||||
return raise_zmk_activity_state_changed(
|
||||
(struct zmk_activity_state_changed){.state = activity_state});
|
||||
}
|
||||
|
||||
int set_state(enum zmk_activity_state state) {
|
||||
|
||||
Reference in New Issue
Block a user