Skip to content

Commit cef7af4

Browse files
authored
fix: Fix build with Studio and USB but not UART (zmkfirmware#2996)
Changed CONFIG_ZMK_STUDIO_TRANSPORT_UART to automatically enable itself whenever a zmk,studio-rpc-uart chosen node is specified. The previous behavior of enabling if CONFIG_ZMK_USB was enabled broke builds when CONFIG_ZMK_STUDIO was enabled but the chosen node wasn't specified.
1 parent 9e905d6 commit cef7af4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/studio/Kconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ if ZMK_STUDIO_RPC
5151

5252
menu "Transports"
5353

54+
DT_CHOSEN_ZMK_STUDIO_RPC_UART := zmk,studio-rpc-uart
55+
5456
config ZMK_STUDIO_TRANSPORT_UART
5557
bool "Serial"
5658
select SERIAL
5759
select RING_BUFFER
58-
default y if ZMK_USB || ARCH_POSIX
60+
default y if $(dt_chosen_enabled,$(DT_CHOSEN_ZMK_STUDIO_RPC_UART))
5961

6062
config ZMK_STUDIO_TRANSPORT_UART_RX_STACK_SIZE
6163
int "RX Stack Size"

0 commit comments

Comments
 (0)