This commit is contained in:
Philippe Teuwen 2019-04-17 22:08:10 +02:00
commit 64eb93c9c4
2 changed files with 2 additions and 2 deletions

View file

@ -376,7 +376,7 @@ void printUSBSpeed(void) {
uint32_t bytes_transferred = 0;
LED_B_ON();
while (end_time < start_time + USB_SPEED_TEST_MIN_TIME) {
reply_ng(CMD_DOWNLOADED_RAW_ADC_SAMPLES_125K, PM3_SUCCESS, test_data, USB_DATANG_SIZE);
end_time = GetTickCount();

View file

@ -448,7 +448,7 @@ static int CmdPingNG(const char *Cmd) {
UsbReplyNG resp;
uint8_t data[USB_DATANG_SIZE] = {0};
uint16_t cmd = CMD_PING;
for (uint16_t i=0; i<len; i++)
for (uint16_t i = 0; i < len; i++)
data[i] = i & 0xFF;
SendCommandNG(cmd, data, len);
if (WaitForResponseTimeout(CMD_PING, &resp, 1000)) {