CHG: 'lf em4x' - the em4x50 demod didn't calc ASKDemod_ext with a refenence bool.

CHG:  'lf em4x' - refactored the code for emd4x50 demod
This commit is contained in:
iceman1001 2017-02-16 16:38:09 +01:00
commit bd09006a8c
3 changed files with 93 additions and 120 deletions

View file

@ -276,6 +276,7 @@ int askdemod(uint8_t *BinStream, size_t *size, int *clk, int *invert, int maxErr
{
if (*size==0) return -1;
int start = DetectASKClock(BinStream, *size, clk, maxErr); //clock default
if (*clk==0 || start < 0) return -3;
if (*invert != 1) *invert = 0;
if (amp==1) askAmp(BinStream, *size);