Fix demod plot of data rawdemod --ab

This commit is contained in:
Philippe Teuwen 2021-07-30 00:09:28 +02:00
commit 2e013c8d82

View file

@ -695,6 +695,9 @@ int ASKbiphaseDemod(int offset, int clk, int invert, int maxErr, bool verbose) {
return PM3_ESOFT; return PM3_ESOFT;
} }
if (offset >= 1) {
offset -= 1;
}
//success set DemodBuffer and return //success set DemodBuffer and return
setDemodBuff(bs, size, 0); setDemodBuff(bs, size, 0);
setClockGrid(clk, startIdx + clk * offset / 2); setClockGrid(clk, startIdx + clk * offset / 2);