mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
CHG: change the snprint call in GetModelStrFromCID.
CHG: tighten up the maxium allowed errors in Biphase (from 1 to zero allowed errors)
This commit is contained in:
parent
6c81ae5574
commit
5ac81d0f58
1 changed files with 3 additions and 4 deletions
|
@ -308,7 +308,7 @@ bool DecodeT55xxBlock(){
|
||||||
break;
|
break;
|
||||||
case DEMOD_BI:
|
case DEMOD_BI:
|
||||||
case DEMOD_BIa:
|
case DEMOD_BIa:
|
||||||
sprintf(cmdStr,"0 %d %d 1", bitRate[config.bitrate], config.inverted );
|
sprintf(cmdStr,"0 %d %d 0", bitRate[config.bitrate], config.inverted );
|
||||||
ans = ASKbiphaseDemod(cmdStr, FALSE);
|
ans = ASKbiphaseDemod(cmdStr, FALSE);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -954,7 +954,6 @@ char * GetBitRateStr(uint32_t id){
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char * GetSaferStr(uint32_t id){
|
char * GetSaferStr(uint32_t id){
|
||||||
static char buf[20];
|
static char buf[20];
|
||||||
char *retStr = buf;
|
char *retStr = buf;
|
||||||
|
@ -1023,8 +1022,8 @@ char * GetModelStrFromCID(uint32_t cid){
|
||||||
static char buf[10];
|
static char buf[10];
|
||||||
char *retStr = buf;
|
char *retStr = buf;
|
||||||
|
|
||||||
if (cid == 1) sprintf(retStr,"ATA5577M1");
|
if (cid == 1) snprintf(retStr, sizeof(buf),"ATA5577M1");
|
||||||
if (cid == 2) sprintf(retStr,"ATA5577M2");
|
if (cid == 2) snprintf(retStr, sizeof(buf),"ATA5577M2");
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue