Skip to content

Commit

Permalink
fix(studio): Improved error message when keyboard is missing a physic…
Browse files Browse the repository at this point in the history
…al layout.
  • Loading branch information
Nick-Munnich authored and petejohanson committed Nov 13, 2024
1 parent 9d9f626 commit fed66a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/physical_layouts.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ ZMK_EVENT_IMPL(zmk_physical_layout_selection_changed);

BUILD_ASSERT(
!IS_ENABLED(CONFIG_ZMK_STUDIO) || USE_PHY_LAYOUTS,
"ZMK Studio requires physical layouts with key positions, and no chosen zmk,matrix-transform. "
"See https://zmk.dev/docs/development/hardware-integration/studio-setup");
"ISSUE FOUND: Keyboards require additional configuration to allow for firmware with ZMK "
"Studio enabled. You have attempted to build a keyboard lacking such configuration. Please see "
"https://zmk.dev/docs/features/studio#adding-zmk-studio-support-to-a-keyboard for "
"more information on how to resolve this error, or contact the maintainer of your keyboard's "
"firmware for assistance.");

#if USE_PHY_LAYOUTS

Expand Down

0 comments on commit fed66a9

Please sign in to comment.