diff options
| author | Pete Johanson <peter@peterjohanson.com> | 2021-01-18 01:09:51 -0500 |
|---|---|---|
| committer | Pete Johanson <peter@peterjohanson.com> | 2021-02-04 00:52:25 -0500 |
| commit | b84d29c384532443010a7140e8670482f2a6ca02 (patch) | |
| tree | c88aa14d80aae1807b4eb6e94a7f5c0c3e98f246 /app/dts/behaviors/momentary_layer.dtsi | |
| parent | b4d63fb52cde20f910e0bd05724e80370c441981 (diff) | |
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.
Diffstat (limited to 'app/dts/behaviors/momentary_layer.dtsi')
| -rw-r--r-- | app/dts/behaviors/momentary_layer.dtsi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/dts/behaviors/momentary_layer.dtsi b/app/dts/behaviors/momentary_layer.dtsi index d3b21da..2dbd88d 100644 --- a/app/dts/behaviors/momentary_layer.dtsi +++ b/app/dts/behaviors/momentary_layer.dtsi @@ -6,7 +6,7 @@ / { behaviors { - mo: behavior_momentary_layer { + /omit-if-no-ref/ mo: behavior_momentary_layer { compatible = "zmk,behavior-momentary-layer"; label = "MO"; #binding-cells = <1>; |
