fixed FSK bit encoding

pull/201/head
alanbjohnston 3 years ago committed by GitHub
parent b85196b27e
commit 47a7c1c0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1288,14 +1288,15 @@ void get_tlm_fox() {
data = val & 1 << (bit - 1);
// printf ("%d i: %d new frame %d sync bit %d = %d \n",
// ctr/SAMPLES, i, frames, bit, (data > 0) );
/// if (mode == FSK) {
/// phase = ((data != 0) * 2) - 1;
// printf("Sending a %d\n", phase);
/// } else {
if (mode == FSK) {
phase = ((data != 0) * 2) - 1;
} else {
if (data == 0) {
phase *= -1;
}
/// }
}
// printf("Sending a %d\n", phase);
}
}
}
/// #ifdef DEBUG_LOGGING

Loading…
Cancel
Save

Powered by TurnKey Linux.