Skip to content

Commit 6ba00b7

Browse files
authored
Merge pull request #2901 from Antiklesys/master
Minor iclass sam comms tweaks
2 parents 2ca43e0 + 0378d91 commit 6ba00b7

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

armsrc/i2c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
// 8051 speaks with smart card.
3737
// 1000*50*3.07 = 153.5ms
3838
// 1 byte transfer == 1ms with max frame being 256 bytes
39-
#define SIM_WAIT_DELAY 88000 // about 270ms delay // 109773 -- about 337.7ms delay
39+
#define SIM_WAIT_DELAY 150000 // about 270ms delay // 109773 -- about 337.7ms delay
4040

4141

4242
void I2C_recovery(void);

armsrc/sam_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ int sam_get_version(bool info) {
279279
if (g_dbglevel >= DBG_INFO || info) {
280280
DbpString(_BLUE_("-- SAM Information --"));
281281
Dbprintf(_YELLOW_("Firmware version: ")"%X.%X", sam_version_an[2], sam_version_an[3]);
282-
Dbprintf(_YELLOW_("Firmware ID : "));
282+
Dbprintf(_YELLOW_("Firmware ID: "));
283283
Dbhexdump(sam_build_an[1], sam_build_an + 2, false);
284284
}
285285
goto out;
@@ -348,7 +348,7 @@ int sam_get_serial_number(void) {
348348
goto error;
349349
}
350350

351-
Dbprintf(_YELLOW_("Sam Serial Number: "));
351+
Dbprintf(_YELLOW_("Serial Number: "));
352352
Dbhexdump(sam_response_an[1],sam_serial_an, false);
353353

354354
goto out;

client/src/cmdhficlass.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5961,10 +5961,7 @@ static int CmdHFiClassSAM(const char *Cmd) {
59615961
clearCommandBuffer();
59625962
SendCommandNG(CMD_HF_SAM_PICOPASS, data, cmdlen + 1);
59635963
PacketResponseNG resp;
5964-
if (WaitForResponseTimeout(CMD_HF_SAM_PICOPASS, &resp, 4000) == false) {
5965-
PrintAndLogEx(WARNING, "SAM timeout");
5966-
return PM3_ETIMEOUT;
5967-
}
5964+
WaitForResponse(CMD_HF_SAM_PICOPASS, &resp);
59685965

59695966
switch (resp.status) {
59705967
case PM3_SUCCESS:

0 commit comments

Comments
 (0)