Skip to content

Commit

Permalink
fixed boxcar overrun
Browse files Browse the repository at this point in the history
  • Loading branch information
markzakharyan committed Oct 12, 2024
1 parent 2508f84 commit 7806f9d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions m4/src/Peripherals/God.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7806f9d

Please sign in to comment.