forked from kofal.net/zmk
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:
committed by
Pete Johanson
parent
1baf18d671
commit
de38676afd
@@ -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)];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user