summaryrefslogtreecommitdiffstats
path: root/src/fig
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-29 11:29:43 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-29 11:29:43 +0100
commit21343ab11ca474bd4be5e9a328f1711359776601 (patch)
tree3de2116746f60b662565c9c009cf458b36f02f7a /src/fig
parentf93da1ac5da7081b097d1420609b1833663493cd (diff)
downloaddabmux-21343ab11ca474bd4be5e9a328f1711359776601.tar.gz
dabmux-21343ab11ca474bd4be5e9a328f1711359776601.tar.bz2
dabmux-21343ab11ca474bd4be5e9a328f1711359776601.zip
PTy: add static/dynamic setting to configuration and RC
Diffstat (limited to 'src/fig')
-rw-r--r--src/fig/FIG0_17.cpp6
1 files changed, 3 insertions, 3 deletions
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;