We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db8dd86 commit 91b78deCopy full SHA for 91b78de
main.c
@@ -193,6 +193,8 @@ static void command_loop(void)
193
uint32_t rlen = 0;
194
readbytes_blocking(&rlen, 3);
195
196
+ sendbyte_blocking(S_ACK);
197
+
198
cs_select(SPI_CS);
199
200
while (wlen) {
@@ -202,8 +204,6 @@ static void command_loop(void)
202
204
wlen -= cur;
203
205
}
206
- sendbyte_blocking(S_ACK);
-
207
while (rlen) {
208
uint32_t cur = MIN(rlen, sizeof buf);
209
spi_read_blocking(SPI_IF, 0, buf, cur);
0 commit comments