summaryrefslogtreecommitdiffstats
path: root/src/fig/FIG0_13.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2022-03-17 17:37:24 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2022-03-17 17:37:24 +0100
commit75cbae6e7446686ff36fae15016b3f8eb76b1ad6 (patch)
treec5d3fa1d081713aff581d15ab464953dc1e20986 /src/fig/FIG0_13.cpp
parentfafba594214bf9c9bedb8c029623eb008fb78440 (diff)
downloaddabmux-75cbae6e7446686ff36fae15016b3f8eb76b1ad6.tar.gz
dabmux-75cbae6e7446686ff36fae15016b3f8eb76b1ad6.tar.bz2
dabmux-75cbae6e7446686ff36fae15016b3f8eb76b1ad6.zip
FIG0/13: do not send list terminator
ETSI TS 102 371 clause 7.1.1 says it's only necessary if the list contains other information besides the profile ids.
Diffstat (limited to 'src/fig/FIG0_13.cpp')
-rw-r--r--src/fig/FIG0_13.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/fig/FIG0_13.cpp b/src/fig/FIG0_13.cpp
index 5cd046c..da21cbf 100644
--- a/src/fig/FIG0_13.cpp
+++ b/src/fig/FIG0_13.cpp
@@ -3,7 +3,7 @@
2011, 2012 Her Majesty the Queen in Right of Canada (Communications
Research Center Canada)
- Copyright (C) 2020
+ Copyright (C) 2022
Matthias P. Braendli, matthias.braendli@mpb.li
*/
/*
@@ -166,7 +166,7 @@ FillStatus FIG0_13::fill(uint8_t *buf, size_t max_size)
app->setType(ua.uaType);
app->length = xpaddata_length;
if (ua.uaType == FIG0_13_APPTYPE_SPI) {
- app->length += 2;
+ app->length += 1;
}
buf += sizeof(FIG0_13_app);
@@ -194,10 +194,9 @@ FillStatus FIG0_13::fill(uint8_t *buf, size_t max_size)
if (ua.uaType == FIG0_13_APPTYPE_SPI) {
buf[0] = 0x01; // = basic profile
- buf[1] = 0x00; // = list terminator
- buf += 2;
- remaining -= 2;
- fig0->Length += 2;
+ buf += 1;
+ remaining -= 1;
+ fig0->Length += 1;
}
}
}