From c8f2cf1f7abe428b04e5a02dc9c3e71e2bc4d2d1 Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Tue, 14 Mar 2023 15:43:34 +0000 Subject: [PATCH] spi_switch: fix dangling else --- firmware/rtl/spi/spi_switch.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/rtl/spi/spi_switch.v b/firmware/rtl/spi/spi_switch.v index 98797f9..2136288 100644 --- a/firmware/rtl/spi/spi_switch.v +++ b/firmware/rtl/spi/spi_switch.v @@ -44,7 +44,9 @@ generate if (PORTS == 3) always @(*) begin end end else always @(*) begin `check_select(1) - else `do_select(0); + else begin + `do_select(0); + end end endgenerate endmodule