fix: LF FDX-B demod - more lenient with max errors. Thanks to @maltehillmann

This commit is contained in:
iceman1001 2019-03-27 15:35:43 +01:00
commit 5fd98db92d
2 changed files with 13 additions and 10 deletions

View file

@ -160,7 +160,7 @@ int getFDXBits(uint64_t national_id, uint16_t country, uint8_t isanimal, uint8_t
int CmdFDXBdemodBI(const char *Cmd) {
int clk = 32;
int invert = 1, errCnt = 0, offset = 0, maxErr = 0;
int invert = 1, errCnt = 0, offset = 0, maxErr = 100;
uint8_t bs[MAX_DEMOD_BUF_LEN];
size_t size = getFromGraphBuf(bs);
@ -236,7 +236,7 @@ int CmdFdxDemod(const char *Cmd) {
//Differential Biphase / di-phase (inverted biphase)
//get binary from ask wave
if (!ASKbiphaseDemod("0 32 1 0", false)) {
if (!ASKbiphaseDemod("0 32 1 100", false)) {
PrintAndLogEx(DEBUG, "DEBUG: Error - FDX-B ASKbiphaseDemod failed");
return 0;
}