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:
Peter Johanson
2024-09-18 10:30:22 -06:00
committed by Pete Johanson
parent 1baf18d671
commit de38676afd
2 changed files with 19 additions and 6 deletions

View File

@@ -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)];