diff options
Diffstat (limited to 'spi_controller.v')
-rw-r--r-- | spi_controller.v | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spi_controller.v b/spi_controller.v index 33ad80a..09ddb86 100644 --- a/spi_controller.v +++ b/spi_controller.v @@ -47,7 +47,7 @@ module spi_controller o_data <= 8'h00; state <= 4'h0; - end else if (state) begin + end else if (busy) begin state <= state - 4'h1; if (~state[0]) shift_o <= shifted_o; if ( state[0]) shift_i <= shifted_i; |