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
parent db44e049b0
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 ) {

View File

@@ -280,7 +280,6 @@ int param_getptr(const char *line, int *bg, int *en, int paramnum)
return 0;
}
char param_getchar(const char *line, int paramnum)
{
int bg, en;