Clean up complex<int8_t> -> complex<float> casting.

This commit is contained in:
Jared Boone 2015-11-19 12:31:21 -08:00
parent 060da5d227
commit 85e984ed3b

View File

@ -47,7 +47,7 @@ void WidebandSpectrum::execute(buffer_c8_t buffer) {
// TODO: Removed window-presum windowing, due to lack of available code RAM.
// TODO: Apply window to improve spectrum bin sidelobes.
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];
}
}