From 3a86555a7211f15fa1cb55de3cc898a761a188fd Mon Sep 17 00:00:00 2001 From: Alex Evans <715855+mmalex@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:54:15 +0000 Subject: first baby steps at extending the webusb protocol to longer messages, processed faster, and add messages to read spi and wavetable ram --- sw/Core/Src/spi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw/Core/Src/spi.h') diff --git a/sw/Core/Src/spi.h b/sw/Core/Src/spi.h index 9affd1f..b69e7e8 100755 --- a/sw/Core/Src/spi.h +++ b/sw/Core/Src/spi.h @@ -46,7 +46,8 @@ void spi_read_done(void) { resetspistate(); } else { int dacchan = spistate-MAX_SPI_STATE; - spi_update_dac(dacchan); + if (dacchan<4 && dacchan>=0) + spi_update_dac(dacchan); } } else { -- cgit v1.2.3