1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 17:04:46 -04:00

FT8 support: remove or comment out asserts

This commit is contained in:
f4exb
2023-01-24 04:05:35 +01:00
parent 886ce74220
commit 4067aecd33
6 changed files with 78 additions and 69 deletions
+10 -3
View File
@@ -18,7 +18,6 @@
// You should have received a copy of the GNU General Public License //
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#include <assert.h>
#include <math.h>
#include <complex>
#include <string>
@@ -175,7 +174,11 @@ std::vector<std::complex<float>> gfsk_c(
const std::vector<float> &gwin
)
{
assert((gwin.size() % 2) == 0);
if (!((gwin.size() % 2) == 0))
{
std::vector<std::complex<float>> v(symsamples * symbols.size());
return v;
}
// compute frequency for each symbol.
// generate a spike in the middle of each symbol time;
@@ -251,7 +254,11 @@ std::vector<float> gfsk_r(
const std::vector<float> &gwin
)
{
assert((gwin.size() % 2) == 0);
if (!((gwin.size() % 2) == 0))
{
std::vector<float> v(symsamples * symbols.size());
return v;
}
// compute frequency for each symbol.
// generate a spike in the middle of each symbol time;