fix(bt): Fix BT tests after soft off work.

* Move to explicit enable of `ZMK_PM_SOFT_OFF` to turn
  on the feature and use the behaviors, which matches
  how other features work, and helps with split and
  testing schemes.
This commit is contained in:
Peter Johanson
2023-12-07 04:04:13 +00:00
committed by Pete Johanson
parent 0d4d4fb2b5
commit e78249ee06
4 changed files with 16 additions and 3 deletions

View File

@@ -25,8 +25,7 @@ config ZMK_BEHAVIOR_MOUSE_KEY_PRESS
config ZMK_BEHAVIOR_SOFT_OFF
bool
default y
select ZMK_PM_SOFT_OFF
depends on DT_HAS_ZMK_BEHAVIOR_SOFT_OFF_ENABLED
depends on DT_HAS_ZMK_BEHAVIOR_SOFT_OFF_ENABLED && ZMK_PM_SOFT_OFF
config ZMK_BEHAVIOR_SENSOR_ROTATE_COMMON
bool

View File

@@ -0,0 +1 @@
CONFIG_ZMK_PM_SOFT_OFF=y

View File

@@ -6,8 +6,9 @@
/ {
behaviors {
soft_off: soft_off {
/omit-if-no-ref/ soft_off: soft_off {
compatible = "zmk,behavior-soft-off";
label = "SOFTOFF";
#binding-cells = <0>;
};
};