remove svg csv save

This commit is contained in:
awe
2026-04-21 19:36:45 +03:00
parent 4e69bb67e2
commit 9b9b7a79ad

View File

@ -2290,22 +2290,11 @@ int run(const Config& cfg) {
}
if (!fast_tty_avg_stream_mode) {
const std::vector<CapturePacket> svg_packets(packets.begin(), packets.end());
writer->write(svg_packets, actual_frame_freq_hz, range_to_volts(cfg.range));
std::size_t total_packet_frames = 0;
for (const auto& packet : svg_packets) {
total_packet_frames += (packet.channel_count <= 1U)
? packet.ch1.size()
: std::min(packet.ch1.size(), packet.ch2.size());
}
std::cout << "Captured " << total_completed_packets << " packet(s), "
<< total_packet_frames << " total frames per channel kept for final SVG\n";
std::cout << "Captured " << total_completed_packets << " packet(s) in capture mode\n";
if (cfg.di1_mode == Di1Mode::ZeroOnChange) {
std::cout << "ADC samples forced to 0 on DI1 change: " << total_zeroed_samples << "\n";
} else if (cfg.di1_mode == Di1Mode::Trace) {
std::cout << "DI1 synchronous trace exported to CSV/live plot/SVG\n";
std::cout << "DI1 synchronous trace exported to live plot\n";
}
} else {
std::cout << "Captured " << total_completed_packets
@ -2347,11 +2336,6 @@ int run(const Config& cfg) {
std::cout << ", tty avg stream-only mode=enabled";
}
std::cout << "\n";
if (!fast_tty_avg_stream_mode) {
std::cout << "Final SVG packets retained in memory: " << packets.size() << "\n"
<< "CSV: " << cfg.csv_path << "\n"
<< "SVG: " << cfg.svg_path << "\n";
}
return 0;
}