MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / completeSweep

Method completeSweep

app/src/DSP.h:745–755  ·  view source on GitHub ↗

* @brief Publishes the filled sweep to `front` and ends the acquisition. `lastSweepSec` is * left at the sweep's start time so the Auto free-run timer re-triggers immediately on * the next sample (continuous refresh) instead of stalling for another full window. */

Source from the content-addressed store, hash-verified

743 * the next sample (continuous refresh) instead of stalling for another full window.
744 */
745 void completeSweep()
746 {
747 const std::size_t n = std::min(front.size(), back.size());
748 for (std::size_t i = 0; i < n; ++i)
749 std::swap(front[i], back[i]);
750
751 hasFront = true;
752 sweeping = false;
753 if (mode == kSingle)
754 armed = false;
755 }
756};
757
758#ifdef BUILD_COMMERCIAL

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected