From 7ca30af83d3ceda20fd5e84c3d0c342231229d9c Mon Sep 17 00:00:00 2001 From: shababo Date: Sun, 14 Apr 2024 00:53:36 -0700 Subject: [PATCH] remove leftover parens --- Source/ImpedanceMeter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ImpedanceMeter.cpp b/Source/ImpedanceMeter.cpp index 1397241..35aed1d 100644 --- a/Source/ImpedanceMeter.cpp +++ b/Source/ImpedanceMeter.cpp @@ -359,7 +359,7 @@ void ImpedanceMeter::runImpedanceMeasurement(Impedances& impedances) int numPeriods = (0.020 * actualImpedanceFreq); // Test each channel for at least 20 msec... if (numPeriods < 5) numPeriods = 5; // ...but always measure across no fewer than 5 complete periods double period = board->settings.boardSampleRate / actualImpedanceFreq; - int numBlocks = ceil((numPeriods + 2) * period / (float(SAMPLES_PER_DATA_BLOCK(board->evalBoard->isUSB3())))); // + 2 periods to give time to settle initially + int numBlocks = ceil((numPeriods + 2) * period / float(SAMPLES_PER_DATA_BLOCK(board->evalBoard->isUSB3()))); // + 2 periods to give time to settle initially if (numBlocks < 2) numBlocks = 2; // need first block for command to switch channels to take effect. CHECK_EXIT;