From 6b6587b8868e402327ad1becb0f1d6de61273aab Mon Sep 17 00:00:00 2001 From: Nick Piggott Date: Sun, 13 Mar 2022 17:06:51 +0000 Subject: Added additional comments about the P/D flag and data field length --- src/fig/FIG0_14.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3