forked from kofal.net/zmk
refactor(power): Extract activity/idle detection.
* Refactor power to extract more general purpose activity detection/events. * Use activity state to implement PM callback.
This commit is contained in:
10
app/src/events/activity_state_changed.c
Normal file
10
app/src/events/activity_state_changed.c
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (c) 2020 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
#include <zmk/events/activity-state-changed.h>
|
||||
|
||||
ZMK_EVENT_IMPL(activity_state_changed);
|
||||
Reference in New Issue
Block a user