ADD: sample buffer size variable, to keep track of possible download lengths which is reserved on client.

This commit is contained in:
iceman1001
2018-04-27 10:09:14 +02:00
parent a11162a9fe
commit cd93f3a134
4 changed files with 11 additions and 1 deletions

View File

@@ -276,6 +276,7 @@ int CmdVersion(const char *Cmd) {
int CmdStatus(const char *Cmd) {
uint8_t speed_test_buffer[USB_CMD_DATA_SIZE];
sample_buf = speed_test_buffer;
sample_buf_size = USB_CMD_DATA_SIZE;
clearCommandBuffer();
UsbCommand c = {CMD_STATUS};
SendCommand(&c);