mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
Fix a VERY stupid bug
This commit is contained in:
parent
ac5bac42cb
commit
1094de3557
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue