Skip to content

Commit

Permalink
return key established
Browse files Browse the repository at this point in the history
  • Loading branch information
JvanKatwijk committed Mar 10, 2020
1 parent 9540aae commit 1f4ee52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 5 additions & 2 deletions radio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1687,8 +1687,11 @@ bool RadioInterface::eventFilter (QObject *obj, QEvent *event) {
QString serviceName =
ensembleDisplay -> currentIndex ().
data (Qt::DisplayRole). toString ();
if ((runningServices. size () > 0) &&
(runningServices. at (runningServices. size () - 1). serviceName !=
//
// to avoid multiple events from a keystroke we
// test whether or not the current service is already selected
if ((runningServices. size () > 0) &&
(runningServices. at (runningServices. size () - 1). serviceName ==
serviceLabel -> text ())) {
selectService (ensembleDisplay -> currentIndex ());
}
Expand Down
7 changes: 3 additions & 4 deletions src/ofdm/phasereference.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#
/*
* Copyright (C) 2014 .. 2017
Expand Down Expand Up @@ -106,7 +105,7 @@ float lbuf [T_u / 2];
float mbuf [T_u / 2];
std::vector<int> resultVector;

memcpy (fft_buffer, v. data(), T_u * sizeof (std::complex<float>));
memcpy (fft_buffer, v. data (), T_u * sizeof (std::complex<float>));
my_fftHandler. do_FFT();
//
// into the frequency domain, now correlate
Expand All @@ -125,7 +124,7 @@ std::vector<int> resultVector;

sum /= T_u / 2;
//
for (i = 0; i < 100; i ++) {
for (i = 0; i < 200; i ++) {
if (lbuf [T_g - 80 + i] > Max) {
maxIndex = T_g - 80 + i;
Max = lbuf [T_g - 80 + i];
Expand Down Expand Up @@ -161,7 +160,7 @@ std::vector<int> resultVector;
}

if (response != nullptr) {
if (++displayCounter > framesperSecond / 6) {
if (++displayCounter > framesperSecond / 2) {
response -> putDataIntoBuffer (mbuf, T_u / 2);
showCorrelation (T_u / 2, T_g);
displayCounter = 0;
Expand Down

0 comments on commit 1f4ee52

Please sign in to comment.