From b3f3362b506d628c53cc610801bc3109965659ea Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 31 Aug 2020 10:18:19 -0400 Subject: 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. --- app/src/endpoints.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/endpoints.c') 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; -- cgit v1.2.3