From 7806f9d439e473392052dbd5d0aed4660ec00ff0 Mon Sep 17 00:00:00 2001 From: Mark Zakharyan Date: Fri, 11 Oct 2024 17:37:54 -0700 Subject: [PATCH] fixed boxcar overrun --- m4/src/Peripherals/God.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/m4/src/Peripherals/God.h b/m4/src/Peripherals/God.h index 71f0f99..185152c 100644 --- a/m4/src/Peripherals/God.h +++ b/m4/src/Peripherals/God.h @@ -437,9 +437,7 @@ class God { } uint32_t dacPeriod_us = - (numAdcMeasuresPerDacStep + numAdcConversionSkips + 1) * - actualConversionTime_us + - numAdcMeasuresPerDacStep * numAdcChannels * 5; + (numAdcMeasuresPerDacStep + numAdcConversionSkips) * (actualConversionTime_us + 5) * numAdcChannels; setStopFlag(false); PeripheralCommsController::dataLedOn();