mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
fix(pm): Fixes for dedicated on/off on peripherals.
* Add new flag to differentiate soft off on peripherals that is invoked by split GATT svc and dedicated additional ones tied to GPIO pin.
This commit is contained in:
committed by
Pete Johanson
parent
41d81801ed
commit
7e7110d85f
@@ -6,9 +6,10 @@
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ soft_off: soft_off {
|
||||
/omit-if-no-ref/ soft_off: keymap_soft_off {
|
||||
compatible = "zmk,behavior-soft-off";
|
||||
#binding-cells = <0>;
|
||||
split-peripheral-off-on-press;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -12,3 +12,6 @@ properties:
|
||||
type: int
|
||||
required: false
|
||||
description: Number of milliseconds the behavior must be held before releasing will actually trigger a soft-off.
|
||||
split-peripheral-off-on-press:
|
||||
type: boolean
|
||||
description: When built for a split peripheral, turn off on press, not release
|
||||
|
||||
Reference in New Issue
Block a user