Skip to content

Commit 91b78de

Browse files
committed
move up ACK
1 parent db8dd86 commit 91b78de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ static void command_loop(void)
193193
uint32_t rlen = 0;
194194
readbytes_blocking(&rlen, 3);
195195

196+
sendbyte_blocking(S_ACK);
197+
196198
cs_select(SPI_CS);
197199

198200
while (wlen) {
@@ -202,8 +204,6 @@ static void command_loop(void)
202204
wlen -= cur;
203205
}
204206

205-
sendbyte_blocking(S_ACK);
206-
207207
while (rlen) {
208208
uint32_t cur = MIN(rlen, sizeof buf);
209209
spi_read_blocking(SPI_IF, 0, buf, cur);

0 commit comments

Comments
 (0)