Skip to content

Commit

Permalink
fix: Fix kscan prop existence test in physical layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Nov 6, 2024
1 parent e6c1219 commit 3a91faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/physical_layouts.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ BUILD_ASSERT(
.matrix_transform = ZMK_MATRIX_TRANSFORM_T_FOR_NODE(DT_INST_PHANDLE(n, transform)), \
.keys = _CONCAT(_zmk_physical_layout_keys_, n), \
.keys_len = DT_INST_PROP_LEN_OR(n, keys, 0), \
.kscan = DEVICE_DT_GET(COND_CODE_1(DT_INST_PROP_LEN(n, kscan), \
.kscan = DEVICE_DT_GET(COND_CODE_1(DT_INST_NODE_HAS_PROP(n, kscan), \
(DT_INST_PHANDLE(n, kscan)), (DT_CHOSEN(zmk_kscan))))};

DT_INST_FOREACH_STATUS_OKAY(ZMK_LAYOUT_INST)
Expand Down

0 comments on commit 3a91faf

Please sign in to comment.