Skip to content

Commit 472b303

Browse files
committed
Try to read and send the requested data in chunks
1 parent 6741cff commit 472b303

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ static void command_loop(void)
223223
cs_deselect(SPI_CS);
224224
break;
225225
}
226-
cs_deselect(SPI_CS);
227226

228227
// Send ACK after handling slen (before reading)
229228
sendbyte_blocking(S_ACK);
@@ -239,7 +238,7 @@ static void command_loop(void)
239238
sendbytes_blocking(rx_buffer, chunk_size);
240239
rlen -= chunk_size;
241240
}
242-
241+
cs_deselect(SPI_CS);
243242
break;
244243
}
245244
case S_CMD_S_SPI_FREQ:

0 commit comments

Comments
 (0)