mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
fix: avoid USB Speed Test timeout in case of slow transfer speeds
fix: don't add CMD_DOWNLOADED_RAW_ADC_SAMPLES_125K commands into command buffer
This commit is contained in:
parent
bfb01844fb
commit
67b7d6fa31
3 changed files with 34 additions and 27 deletions
|
@ -431,12 +431,11 @@ int CmdStatus(const char *Cmd)
|
|||
{
|
||||
uint8_t speed_test_buffer[USB_CMD_DATA_SIZE];
|
||||
sample_buf = speed_test_buffer;
|
||||
#define USB_SPEED_TEST_SIZE (1000*USB_CMD_DATA_SIZE)
|
||||
|
||||
clearCommandBuffer();
|
||||
UsbCommand c = {CMD_STATUS, {USB_SPEED_TEST_SIZE}};
|
||||
UsbCommand c = {CMD_STATUS};
|
||||
SendCommand(&c);
|
||||
if (!WaitForResponseTimeout(CMD_ACK,&c,1500)) {
|
||||
if (!WaitForResponseTimeout(CMD_ACK,&c,1900)) {
|
||||
PrintAndLog("Status command failed. USB Speed Test timed out");
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue