Skip to content

Commit

Permalink
M17: more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Jul 20, 2022
1 parent c1198ff commit ef873c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions plugins/channelrx/demodm17/m17demodprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <QObject>

#include "dsp/dsptypes.h"
#include "audio/audiocompressor.h"
#include "M17Demodulator.h"
#include "m17demodfilters.h"
Expand Down
6 changes: 3 additions & 3 deletions plugins/channeltx/modm17/m17moddecimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ void M17ModDecimator::initialize(
mKernel[i] = 0;
}

for (int i = 0; i < activeKernelSize; i++)
for (unsigned int i = 0; i < activeKernelSize; i++)
{
double y;

if (i == M/2) {
if (i == (unsigned int) M/2) {
y = 2 * M_PI * Fc;
} else {
y = (sin(2 * M_PI * Fc * (i - M / 2)) / (i - M / 2) *
Expand Down Expand Up @@ -114,7 +114,7 @@ void M17ModDecimator::decimate(int16_t *in, int16_t *out, unsigned int outCount)
for (unsigned int i = 0; i < outCount; i++)
{
// Insert mRatio input samples at cursor.
for (unsigned int j = 0; j < mRatio; j++) {
for (int j = 0; j < mRatio; j++) {
*shiftp++ = *inp++;
}

Expand Down

0 comments on commit ef873c0

Please sign in to comment.