From 21343ab11ca474bd4be5e9a328f1711359776601 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 29 Jan 2018 11:29:43 +0100 Subject: PTy: add static/dynamic setting to configuration and RC --- src/fig/FIG0_17.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fig/FIG0_17.cpp') diff --git a/src/fig/FIG0_17.cpp b/src/fig/FIG0_17.cpp index 03d8814..e10130f 100644 --- a/src/fig/FIG0_17.cpp +++ b/src/fig/FIG0_17.cpp @@ -65,7 +65,7 @@ FillStatus FIG0_17::fill(uint8_t *buf, size_t max_size) for (; serviceFIG0_17 != ensemble->services.end(); ++serviceFIG0_17) { - if ((*serviceFIG0_17)->pty == 0) { + if ((*serviceFIG0_17)->pty_settings.pty == 0) { continue; } @@ -92,13 +92,13 @@ FillStatus FIG0_17::fill(uint8_t *buf, size_t max_size) auto fig0_17 = (FIGtype0_17*)buf; fig0_17->SId = htons((*serviceFIG0_17)->id); - fig0_17->SD = 1; // We only transmit dynamic PTy + fig0_17->SD = ((*serviceFIG0_17)->pty_settings.dynamic_no_static ? 1 : 0); fig0_17->rfa1 = 0; fig0_17->rfu1 = 0; fig0_17->rfa2_low = 0; fig0_17->rfa2_high = 0; fig0_17->rfu2 = 0; - fig0_17->IntCode = (*serviceFIG0_17)->pty; + fig0_17->IntCode = (*serviceFIG0_17)->pty_settings.pty; fig0->Length += 4; buf += 4; -- cgit v1.2.3