From 08687b170920c20661be89569213e7ab32f2dc61 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Mon, 2 Aug 2021 21:44:23 -0400 Subject: [PATCH] fix(display): Update output status on endpoint selection change. --- app/src/display/widgets/output_status.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/display/widgets/output_status.c b/app/src/display/widgets/output_status.c index 7e37f906..3bfbebf6 100644 --- a/app/src/display/widgets/output_status.c +++ b/app/src/display/widgets/output_status.c @@ -13,6 +13,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); #include #include #include +#include #include #include #include @@ -86,6 +87,8 @@ int output_status_listener(const zmk_event_t *eh) { } ZMK_LISTENER(widget_output_status, output_status_listener) +ZMK_SUBSCRIPTION(widget_output_status, zmk_endpoint_selection_changed); + #if defined(CONFIG_USB) ZMK_SUBSCRIPTION(widget_output_status, zmk_usb_conn_state_changed); #endif