mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-13 12:50:47 +00:00
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:
@@ -35,7 +35,7 @@ class GoertzelDetector {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
float coefficient{};
|
float coefficient{};
|
||||||
int16_t s[2]{0};
|
int16_t s[3]{0};
|
||||||
};
|
};
|
||||||
|
|
||||||
} /* namespace dsp */
|
} /* namespace dsp */
|
||||||
|
@@ -1835,7 +1835,7 @@ void gen_numname (
|
|||||||
if (c > '9') c += 7;
|
if (c > '9') c += 7;
|
||||||
ns[i--] = c;
|
ns[i--] = c;
|
||||||
seq /= 16;
|
seq /= 16;
|
||||||
} while (seq);
|
} while (seq && i != 0);
|
||||||
ns[i] = '~';
|
ns[i] = '~';
|
||||||
|
|
||||||
/* Append the number */
|
/* Append the number */
|
||||||
|
Reference in New Issue
Block a user