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

Method resetState

app/src/DSP.h:617–634  ·  view source on GitHub ↗

* @brief Clears the decimation state and disarms an in-progress sweep. */

Source from the content-addressed store, hash-verified

615 * @brief Clears the decimation state and disarms an in-progress sweep.
616 */
617 void resetState()
618 {
619 for (auto& r : front)
620 r.clear();
621
622 for (auto& r : back)
623 r.clear();
624
625 t0 = 0.0;
626 prevValue = 0.0;
627 prevTime = 0.0;
628 lastTriggerSec = -1.0;
629 lastSweepSec = 0.0;
630 prevValid = false;
631 sweeping = false;
632 hasFront = false;
633 armed = true;
634 }
635
636 /**
637 * @brief Returns the ring to render. Short windows show the frozen, phase-locked

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected