aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2022-03-23 11:22:31 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2022-03-23 11:22:31 +0100
commitcf58fa375c003173215baf81b4b64cf4e5c1873c (patch)
tree3a20480430d4064b275af7c722026f489b6e9cf0
parenta4bfb55fa0632b63de5b10142fe9f966b9e21ec6 (diff)
downloaddabmux-cf58fa375c003173215baf81b4b64cf4e5c1873c.tar.gz
dabmux-cf58fa375c003173215baf81b4b64cf4e5c1873c.tar.bz2
dabmux-cf58fa375c003173215baf81b4b64cf4e5c1873c.zip
Fix FIG0/13 length calculation
-rw-r--r--src/fig/FIG0_13.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fig/FIG0_13.cpp b/src/fig/FIG0_13.cpp
index d1d18c7..4233302 100644
--- a/src/fig/FIG0_13.cpp
+++ b/src/fig/FIG0_13.cpp
@@ -120,7 +120,10 @@ FillStatus FIG0_13::fill(uint8_t *buf, size_t max_size)
required_size += sizeof(FIG0_13_app) + xpaddata_length;
if (ua.uaType == FIG0_13_APPTYPE_SPI) {
- required_size += 2; // For the "basic profile" user application data
+ required_size += 1;
+ }
+ else if (ua.uaType == FIG0_13_APPTYPE_WEBSITE) {
+ required_size += 2;
}
}