CHG: tighten up the maxium allowed errors in Biphase (from 1 to zero allowed errors)
break;\r
case DEMOD_BI:\r
case DEMOD_BIa:\r
break;\r
case DEMOD_BI:\r
case DEMOD_BIa:\r
- sprintf(cmdStr,"0 %d %d 1", bitRate[config.bitrate], config.inverted );\r
+ sprintf(cmdStr,"0 %d %d 0", bitRate[config.bitrate], config.inverted );\r
ans = ASKbiphaseDemod(cmdStr, FALSE);\r
break;\r
default:\r
ans = ASKbiphaseDemod(cmdStr, FALSE);\r
break;\r
default:\r
char * GetSaferStr(uint32_t id){\r
static char buf[20];\r
char *retStr = buf;\r
char * GetSaferStr(uint32_t id){\r
static char buf[20];\r
char *retStr = buf;\r
static char buf[10];\r
char *retStr = buf;\r
\r
static char buf[10];\r
char *retStr = buf;\r
\r
- if (cid == 1) sprintf(retStr,"ATA5577M1");\r
- if (cid == 2) sprintf(retStr,"ATA5577M2"); \r
+ if (cid == 1) snprintf(retStr, sizeof(buf),"ATA5577M1");\r
+ if (cid == 2) snprintf(retStr, sizeof(buf),"ATA5577M2"); \r