Fix a VERY stupid bug

This commit is contained in:
Aang23 2024-01-04 20:02:55 +01:00
parent ac5bac42cb
commit 1094de3557

View file

@ -5,6 +5,11 @@ void rotate_soft(int8_t *soft, int size, phase_t phase, bool iqswap)
{
int8_t tmp;
// Scale down to avoid overflows
for (int i = 0; i < size; i++)
if (soft[i] == -128)
soft[i] = -127;
// Swap I & Q if requested
if (iqswap)
{