Skip to content

Commit

Permalink
fix(studio): Update position map querying
Browse files Browse the repository at this point in the history
  • Loading branch information
awkannan authored and petejohanson committed Sep 18, 2024
1 parent a9167b2 commit c8c8835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/physical_layouts.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ DT_FOREACH_CHILD_SEP(DT_INST(0, POS_MAP_COMPAT), ZMK_POS_MAP_LEN_CHECK, (;));
#define ZMK_POS_MAP_ENTRY(node_id) \
{ \
.layout = COND_CODE_1( \
DT_HAS_COMPAT_STATUS_OKAY(DT_PHANDLE(node_id, physical_layout)), \
UTIL_AND(DT_NODE_HAS_COMPAT(DT_PHANDLE(node_id, physical_layout), DT_DRV_COMPAT), \
DT_NODE_HAS_STATUS(DT_PHANDLE(node_id, physical_layout), okay)), \
(&_CONCAT(_zmk_physical_layout_, DT_PHANDLE(node_id, physical_layout))), (NULL)), \
.positions = DT_PROP(node_id, positions), \
}
Expand Down

0 comments on commit c8c8835

Please sign in to comment.