Merge pull request #278 from GullCode/tv_collector_warning_fix

removed unused variables
This commit is contained in:
Erwin Ried 2021-03-15 11:45:50 +01:00 committed by GitHub
commit 9d437aee6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,11 +88,9 @@ void TvCollector::post_message(const buffer_c16_t& data) {
// Called from baseband processing thread.
float re, im;
float mag;
float max;
if( streaming && !channel_spectrum_request_update ) {
for(size_t i=0; i<256; i++)
{
const auto s = data.p[i];
re = (float)(data.p[i].real());
im = (float)(data.p[i].imag());
mag = __builtin_sqrtf((re * re) + (im * im)) ;