mirror of https://github.com/zmkfirmware/zmk.git
satisfy pre-commit checks
This commit is contained in:
parent
18a636cdbf
commit
f2db79460d
|
|
@ -45,9 +45,9 @@ static const struct behavior_driver_api behavior_leader_key_driver_api = {
|
||||||
|
|
||||||
#define LEAD_INST(n) \
|
#define LEAD_INST(n) \
|
||||||
static struct behavior_leader_key_config behavior_leader_key_config_##n = { \
|
static struct behavior_leader_key_config behavior_leader_key_config_##n = { \
|
||||||
.timeout_ms = DT_INST_PROP(n, timeout_ms)}; \
|
.timeout_ms = DT_INST_PROP(n, timeout_ms)}; \
|
||||||
BEHAVIOR_DT_INST_DEFINE(n, behavior_leader_key_init, NULL, NULL, \
|
BEHAVIOR_DT_INST_DEFINE(n, behavior_leader_key_init, NULL, NULL, \
|
||||||
&behavior_leader_key_config_##n, POST_KERNEL, \
|
&behavior_leader_key_config_##n, POST_KERNEL, \
|
||||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &behavior_leader_key_driver_api);
|
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &behavior_leader_key_driver_api);
|
||||||
|
|
||||||
DT_INST_FOREACH_STATUS_OKAY(LEAD_INST)
|
DT_INST_FOREACH_STATUS_OKAY(LEAD_INST)
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,11 @@ static uint32_t current_sequence[CONFIG_ZMK_LEADER_MAX_KEYS_PER_SEQUENCE] = {-1}
|
||||||
static int num_candidates;
|
static int num_candidates;
|
||||||
static struct leader_seq_cfg *sequence_candidates[CONFIG_ZMK_LEADER_MAX_SEQUENCES_PER_KEY];
|
static struct leader_seq_cfg *sequence_candidates[CONFIG_ZMK_LEADER_MAX_SEQUENCES_PER_KEY];
|
||||||
static int num_comp_candidates;
|
static int num_comp_candidates;
|
||||||
static struct leader_seq_cfg *completed_sequence_candidates[CONFIG_ZMK_LEADER_MAX_SEQUENCES_PER_KEY];
|
static struct leader_seq_cfg
|
||||||
|
*completed_sequence_candidates[CONFIG_ZMK_LEADER_MAX_SEQUENCES_PER_KEY];
|
||||||
// a lookup dict that maps a key position to all sequences on that position
|
// a lookup dict that maps a key position to all sequences on that position
|
||||||
static struct leader_seq_cfg *sequence_lookup[ZMK_KEYMAP_LEN][CONFIG_ZMK_LEADER_MAX_SEQUENCES_PER_KEY] = {
|
static struct leader_seq_cfg
|
||||||
NULL};
|
*sequence_lookup[ZMK_KEYMAP_LEN][CONFIG_ZMK_LEADER_MAX_SEQUENCES_PER_KEY] = {NULL};
|
||||||
|
|
||||||
// Store the leader key pointer in the leader array, one pointer for each key position
|
// Store the leader key pointer in the leader array, one pointer for each key position
|
||||||
// The leader are sorted shortest-first, then by virtual-key-position.
|
// The leader are sorted shortest-first, then by virtual-key-position.
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ ZMK is currently missing some features found in other popular firmware. This tab
|
||||||
| [Wide Range of ARM Chips Supported](https://docs.zephyrproject.org/3.5.0/boards/index.html) | ✅ | | |
|
| [Wide Range of ARM Chips Supported](https://docs.zephyrproject.org/3.5.0/boards/index.html) | ✅ | | |
|
||||||
|
|
||||||
[^2]: Tap-Dances are limited to single and double-tap on BlueMicro
|
[^2]: Tap-Dances are limited to single and double-tap on BlueMicro
|
||||||
|
|
||||||
[^1]: OLEDs are currently proof of concept in ZMK.
|
[^1]: OLEDs are currently proof of concept in ZMK.
|
||||||
|
|
||||||
## Code of Conduct
|
## Code of Conduct
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue