Browse Source

fix(display): Update output status on endpoint selection change.

xmkb
Peter Johanson 3 years ago committed by Pete Johanson
parent
commit
08687b1709
  1. 3
      app/src/display/widgets/output_status.c

3
app/src/display/widgets/output_status.c

@ -13,6 +13,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); @@ -13,6 +13,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#include <zmk/event_manager.h>
#include <zmk/events/usb_conn_state_changed.h>
#include <zmk/events/ble_active_profile_changed.h>
#include <zmk/events/endpoint_selection_changed.h>
#include <zmk/usb.h>
#include <zmk/ble.h>
#include <zmk/endpoints.h>
@ -86,6 +87,8 @@ int output_status_listener(const zmk_event_t *eh) { @@ -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

Loading…
Cancel
Save