This commit is contained in:
awe
2026-04-15 18:32:59 +03:00
parent f85669cc1e
commit 3817f21473
3 changed files with 5 additions and 5 deletions

View File

@ -1605,7 +1605,7 @@ int run(const Config& cfg) {
(cfg.channel_count <= 1U)
? 0.0
: (tty_group_state.sum_ch2 / static_cast<double>(tty_group_state.count_ch2));
append_tty_frame(0x000A,
append_tty_frame( (cfg.profile == CaptureProfile::Amplitude) ? 0x001AU : 0x000AU,
static_cast<uint16_t>(tty_group_state.next_index),
static_cast<uint16_t>(pack_raw_code_to_int16(ch1_avg)),
static_cast<uint16_t>(pack_raw_code_to_int16(ch2_avg)));
@ -1870,7 +1870,7 @@ int run(const Config& cfg) {
for (uint32_t i = 0; i < raw_adc_count; ++i) {
const int16_t sample = pack_raw_code_to_int16(adc_raw_buffer[i]);
if (cfg.channel_count <= 1U) {
append_tty_frame(0x000A,
append_tty_frame( (cfg.profile == CaptureProfile::Amplitude) ? 0x001AU : 0x000AU,
tty_state.next_index,
static_cast<uint16_t>(sample),
0U);
@ -1887,7 +1887,7 @@ int run(const Config& cfg) {
continue;
}
append_tty_frame(0x000A,
append_tty_frame( (cfg.profile == CaptureProfile::Amplitude) ? 0x001AU : 0x000AU,
tty_state.next_index,
static_cast<uint16_t>(tty_state.pending_ch1),
static_cast<uint16_t>(sample));