Dsp fatfs fix (#1118)

* fixing overflow by one in ../firmware/baseband/dsp_goertzel.cpp by expanding the original array size
* fix underflow by -1 if seq is not stopping the loop
This commit is contained in:
gullradriel 2023-06-07 11:25:35 +02:00 committed by GitHub
parent eecdd3acda
commit 5a5445e980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class GoertzelDetector {
private:
float coefficient{};
int16_t s[2]{0};
int16_t s[3]{0};
};
} /* namespace dsp */

View File

@ -1835,7 +1835,7 @@ void gen_numname (
if (c > '9') c += 7;
ns[i--] = c;
seq /= 16;
} while (seq);
} while (seq && i != 0);
ns[i] = '~';
/* Append the number */