aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/behaviors/behavior_outputs.c
diff options
context:
space:
mode:
authorJoel Spadin <[email protected]>2020-10-28 18:10:47 -0500
committerJoel Spadin <[email protected]>2020-10-28 18:15:05 -0500
commit440d09fd45fa59de481837825d27635819ad1c37 (patch)
tree8b535a61367dcf5a5db019180d1ea8545a8c9307 /app/src/behaviors/behavior_outputs.c
parent2fe1fbb526d9190e478999f36adbcfcf4a8847b2 (diff)
downloadzmk-440d09fd45fa59de481837825d27635819ad1c37.tar.gz
zmk-440d09fd45fa59de481837825d27635819ad1c37.zip
feat(endpoints): simplify behavior constants
Diffstat (limited to 'app/src/behaviors/behavior_outputs.c')
-rw-r--r--app/src/behaviors/behavior_outputs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/behaviors/behavior_outputs.c b/app/src/behaviors/behavior_outputs.c
index 0e7ac490c9..e5182bd4f4 100644
--- a/app/src/behaviors/behavior_outputs.c
+++ b/app/src/behaviors/behavior_outputs.c
@@ -21,11 +21,11 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding,
struct zmk_behavior_binding_event event) {
switch (binding->param1) {
- case OUTPUT_TOGGLE_CMD:
+ case OUT_TOG:
return zmk_endpoints_toggle();
- case OUTPUT_USB_CMD:
+ case OUT_USB:
return zmk_endpoints_select(ZMK_ENDPOINT_USB);
- case OUTPUT_BLE_CMD:
+ case OUT_BLE:
return zmk_endpoints_select(ZMK_ENDPOINT_BLE);
default:
LOG_ERR("Unknown output command: %d", binding->param1);