fixed bufLen bug

pull/168/head
alanbjohnston 3 years ago committed by GitHub
parent 6ce7f73a24
commit 9ac3fc7869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -238,7 +238,7 @@ void config_telem() {
// samples = S_RATE / bitRate;
samples = sample_rate / bitRate;
Serial.println(samples);
bufLen = (frameCnt * (syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen))) * samples) * 2; // 2 *
bufLen = (frameCnt * (syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen))) * samples); // * 2; // 2 *
Serial.println(bufLen);
// samplePeriod = ((float)((syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen))))/(float)bitRate) * 1000 - 500;
samplePeriod = ((float)((syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen))))/(float)bitRate) * 1000; // - 500;

Loading…
Cancel
Save

Powered by TurnKey Linux.