summaryrefslogtreecommitdiff
path: root/app/src/endpoints.c
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-08-31 10:18:19 -0400
committerPete Johanson <peter@peterjohanson.com>2020-12-02 16:04:56 -0500
commitb3f3362b506d628c53cc610801bc3109965659ea (patch)
tree847013359808f4e0bc7c0da17d6750eb998b143c /app/src/endpoints.c
parentd5ea4269757e4b6e1d4a4185a34f359210eac310 (diff)
feat(display): Initial widget/status screen work.
* Battery and output status widgets * Built in status screen combining them. * Ability to define a custom status screen factory function.
Diffstat (limited to 'app/src/endpoints.c')
-rw-r--r--app/src/endpoints.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/endpoints.c b/app/src/endpoints.c
index 406d23b..4367dd2 100644
--- a/app/src/endpoints.c
+++ b/app/src/endpoints.c
@@ -47,6 +47,8 @@ int zmk_endpoints_select(enum zmk_endpoint endpoint) {
return 0;
}
+enum zmk_endpoint zmk_endpoints_selected() { return current_endpoint; }
+
int zmk_endpoints_toggle() {
enum zmk_endpoint new_endpoint =
(preferred_endpoint == ZMK_ENDPOINT_USB) ? ZMK_ENDPOINT_BLE : ZMK_ENDPOINT_USB;