From b84d29c384532443010a7140e8670482f2a6ca02 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 18 Jan 2021 01:09:51 -0500 Subject: refactor(core): Use /omit-if-no-ref/ for behaviors. * Use lesser-known DT features to skip behaviors not referenced in the user keymap * Update the behaviors to skip code if no nodes found. * Remove some empty config/data structs where unused in behaviors. --- app/dts/behaviors/mod_tap.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/dts/behaviors/mod_tap.dtsi') diff --git a/app/dts/behaviors/mod_tap.dtsi b/app/dts/behaviors/mod_tap.dtsi index b972aba..79ce10c 100644 --- a/app/dts/behaviors/mod_tap.dtsi +++ b/app/dts/behaviors/mod_tap.dtsi @@ -6,7 +6,7 @@ / { behaviors { - mt: behavior_mod_tap { + /omit-if-no-ref/ mt: behavior_mod_tap { compatible = "zmk,behavior-hold-tap"; label = "MOD_TAP"; #binding-cells = <2>; -- cgit v1.2.3