From 467140dbf863fc37fa1779705206cfc11c1c49f8 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sat, 9 May 2020 12:41:37 +0100 Subject: [PATCH] VS2019 fixes. --- FMControl.cpp | 6 ++---- MMDVMHost.vcxproj | 2 ++ MMDVMHost.vcxproj.filters | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/FMControl.cpp b/FMControl.cpp index e3836d7..68aeab8 100644 --- a/FMControl.cpp +++ b/FMControl.cpp @@ -66,9 +66,8 @@ bool CFMControl::writeModem(const unsigned char* data, unsigned int length) } // De-emphasise the data and any other processing needed (maybe a low-pass filter to remove the CTCSS) - for(unsigned int i = 0U; i < nSamples; i++) { + for (unsigned int i = 0U; i < nSamples; i++) samples[i] = m_deemphasis.filter(samples[i]); - } unsigned char out[350U]; unsigned int nOut = 0U; @@ -104,9 +103,8 @@ unsigned int CFMControl::readModem(unsigned char* data, unsigned int space) } // Pre-emphasise the data and other stuff. - for(unsigned int i = 0U; i < nSamples; i++) { + for (unsigned int i = 0U; i < nSamples; i++) samples[i] = m_preemphasis.filter(samples[i]); - } // Pack the floating point data (+1.0 to -1.0) to packed 12-bit samples (+2047 - -2048) unsigned int pack = 0U; diff --git a/MMDVMHost.vcxproj b/MMDVMHost.vcxproj index cb65730..63ba164 100644 --- a/MMDVMHost.vcxproj +++ b/MMDVMHost.vcxproj @@ -188,6 +188,7 @@ + @@ -285,6 +286,7 @@ + diff --git a/MMDVMHost.vcxproj.filters b/MMDVMHost.vcxproj.filters index 4c0b48f..8dc6f12 100644 --- a/MMDVMHost.vcxproj.filters +++ b/MMDVMHost.vcxproj.filters @@ -305,6 +305,9 @@ Header Files + + Header Files + @@ -574,5 +577,8 @@ Source Files + + Source Files + \ No newline at end of file