summaryrefslogtreecommitdiffstats
path: root/src/fig
diff options
context:
space:
mode:
authorNick Piggott <nickpiggott@LINUX-DESKTOP-2.piggott.eu>2022-03-13 17:06:51 +0000
committerMatthias P. Braendli <matthias.braendli@mpb.li>2022-03-17 16:54:18 +0100
commit6b6587b8868e402327ad1becb0f1d6de61273aab (patch)
tree60f0462f807284a53d0eea1eb8f1aa1b34849845 /src/fig
parentfb4bcbebcb890dc48b21f38126fb8818c0ec8a49 (diff)
downloaddabmux-6b6587b8868e402327ad1becb0f1d6de61273aab.tar.gz
dabmux-6b6587b8868e402327ad1becb0f1d6de61273aab.tar.bz2
dabmux-6b6587b8868e402327ad1becb0f1d6de61273aab.zip
Added additional comments about the P/D flag and data field length
Diffstat (limited to 'src/fig')
-rw-r--r--src/fig/FIG0_14.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fig/FIG0_14.cpp b/src/fig/FIG0_14.cpp
index 0f796e5..2fc484c 100644
--- a/src/fig/FIG0_14.cpp
+++ b/src/fig/FIG0_14.cpp
@@ -87,10 +87,10 @@ FillStatus FIG0_14::fill(uint8_t *buf, size_t max_size)
}
fig0 = (FIGtype0*)buf;
fig0->FIGtypeNumber = 0;
- fig0->Length = 1;
+ fig0->Length = required_size;
fig0->CN = 0;
fig0->OE = 0;
- fig0->PD = 1;
+ fig0->PD = 1; // Only ever applicable to data services
fig0->Extension = 14;
buf += 2;
remaining -= 2;