* @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. */
| 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 |