mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-07-11 05:18:34 +00:00
Clean up complex<int8_t> -> complex<float> casting.
This commit is contained in:
parent
060da5d227
commit
85e984ed3b
@ -47,7 +47,7 @@ void WidebandSpectrum::execute(buffer_c8_t buffer) {
|
|||||||
// TODO: Removed window-presum windowing, due to lack of available code RAM.
|
// TODO: Removed window-presum windowing, due to lack of available code RAM.
|
||||||
// TODO: Apply window to improve spectrum bin sidelobes.
|
// TODO: Apply window to improve spectrum bin sidelobes.
|
||||||
for(size_t i=0; i<channel_spectrum.size(); i++) {
|
for(size_t i=0; i<channel_spectrum.size(); i++) {
|
||||||
spectrum[i] += std::complex<float> { buffer.p[i].real(), buffer.p[i].imag() };
|
spectrum[i] += buffer.p[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user