CHG: reverted back from the idea of measureing in (us) microseconds, the timer is too raw, gives 10-15us delays. Now we are measuring ticks, which is (1 us = 1.5ticks)

like it was before.   ie:  80us = 80*1.5 = 120ticks.
This commit is contained in:
iceman1001 2016-09-11 11:14:12 +02:00
commit 76471e5d17
5 changed files with 53 additions and 38 deletions

View file

@ -415,7 +415,7 @@ int CmdLegicRFRead(const char *Cmd) {
clearCommandBuffer();
SendCommand(&c);
UsbCommand resp;
if (WaitForResponseTimeout(CMD_ACK, &resp, 2000)) {
if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) {
uint8_t isOK = resp.arg[0] & 0xFF;
uint16_t len = resp.arg[1] & 0x3FF;
if ( isOK ) {