Demod.syncBit = 0x02;
}
- if(bit & 0x01) {
+ if(bit & 0x01 && Demod.syncBit) {
Demod.syncBit = 0x01;
}
// Count of samples received so far, so that we can include timing
// information in the trace buffer.
int samples = 0;
- int rsamples = 0;
+ int rsamples = 0;
memset(trace, 0x44, RECV_CMD_OFFSET);