mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-09-20 16:15:51 +00:00
removed unused variables
This commit is contained in:
parent
19ebf14e8c
commit
1483160df4
@ -88,11 +88,9 @@ void TvCollector::post_message(const buffer_c16_t& data) {
|
|||||||
// Called from baseband processing thread.
|
// Called from baseband processing thread.
|
||||||
float re, im;
|
float re, im;
|
||||||
float mag;
|
float mag;
|
||||||
float max;
|
|
||||||
if( streaming && !channel_spectrum_request_update ) {
|
if( streaming && !channel_spectrum_request_update ) {
|
||||||
for(size_t i=0; i<256; i++)
|
for(size_t i=0; i<256; i++)
|
||||||
{
|
{
|
||||||
const auto s = data.p[i];
|
|
||||||
re = (float)(data.p[i].real());
|
re = (float)(data.p[i].real());
|
||||||
im = (float)(data.p[i].imag());
|
im = (float)(data.p[i].imag());
|
||||||
mag = __builtin_sqrtf((re * re) + (im * im)) ;
|
mag = __builtin_sqrtf((re * re) + (im * im)) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user