Skip to content

Commit

Permalink
feat(keymap): Explicit error if zmk,keymap not set
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Feb 29, 2024
1 parent db7b197 commit 9828645
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ static uint8_t _zmk_keymap_layer_default = 0;

#define DT_DRV_COMPAT zmk_keymap

#if !DT_NODE_EXISTS(DT_DRV_INST(0))

#error "Keymap node not found, check a keymap is available and is has compatible = "zmk,keymap" set"

#endif

#define TRANSFORMED_LAYER(node) \
{ LISTIFY(DT_PROP_LEN(node, bindings), ZMK_KEYMAP_EXTRACT_BINDING, (, ), node) }

Expand Down

0 comments on commit 9828645

Please sign in to comment.