fix(core): Warn only with layouts + chosen transform
* Instead of erroring out, simply ignore physical layouts if we detect a chosen matrix transform, and warn instead.
This commit is contained in:
parent
1baf18d671
commit
de38676afd
2 changed files with 19 additions and 6 deletions
|
|
@ -13,10 +13,6 @@
|
|||
|
||||
#if DT_HAS_COMPAT_STATUS_OKAY(zmk_physical_layout)
|
||||
|
||||
#if ZMK_MATRIX_HAS_TRANSFORM
|
||||
#error "To use physical layouts, remove the chosen `zmk,matrix-transform` value."
|
||||
#endif
|
||||
|
||||
#define ZMK_PHYSICAL_LAYOUT_BYTE_ARRAY(node_id) \
|
||||
uint8_t _CONCAT(prop_, node_id)[DT_PROP_LEN(DT_PHANDLE(node_id, transform), map)];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue