FIX: the changes to uart.c timings seems to have fixed my problem with the pm3 device getting unresponsive.

CHG: "script run hard"  now iterates all sectors on the tag and output the table style like "hf mf chkkey" do.
This commit is contained in:
iceman1001
2016-11-22 01:58:11 +01:00
parent e108a48ac4
commit d1e197e9ec
5 changed files with 89 additions and 22 deletions

View File

@@ -385,10 +385,10 @@ serial_port uart_open(const char* pcPortName) {
return INVALID_SERIAL_PORT;
}
sp->ct.ReadIntervalTimeout = 0;
sp->ct.ReadTotalTimeoutMultiplier = 0;
sp->ct.ReadIntervalTimeout = 1;
sp->ct.ReadTotalTimeoutMultiplier = 1;
sp->ct.ReadTotalTimeoutConstant = 30;
sp->ct.WriteTotalTimeoutMultiplier = 0;
sp->ct.WriteTotalTimeoutMultiplier = 1;
sp->ct.WriteTotalTimeoutConstant = 30;
if(!SetCommTimeouts(sp->hPort,&sp->ct)) {