aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig0_14.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-11-13 13:10:30 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-11-13 13:10:30 +0100
commitcba531bbad8481db47318ac8146c54252100f2ad (patch)
tree3352e929cfee28b7ebb6003eff9b32d932a9301c /src/fig0_14.cpp
parenta1415d55cd2db58ff5469cabe64efb9ff29dcec0 (diff)
downloadetisnoop-cba531bbad8481db47318ac8146c54252100f2ad.tar.gz
etisnoop-cba531bbad8481db47318ac8146c54252100f2ad.tar.bz2
etisnoop-cba531bbad8481db47318ac8146c54252100f2ad.zip
Add first filter to display only some FIGs
TODO: many FIGs print without using printbuf, fir which the filter doesn't work yet.
Diffstat (limited to 'src/fig0_14.cpp')
-rw-r--r--src/fig0_14.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fig0_14.cpp b/src/fig0_14.cpp
index e72d121..029a21c 100644
--- a/src/fig0_14.cpp
+++ b/src/fig0_14.cpp
@@ -58,7 +58,7 @@ const char *FEC_schemes_str[4] = {
// FIG 0/14 FEC sub-channel organization
// ETSI EN 300 401 6.2.2
-bool fig0_14(fig0_common_t& fig0, int indent)
+bool fig0_14(fig0_common_t& fig0, const display_settings_t &disp)
{
uint8_t i = 1, SubChId, FEC_scheme;
uint8_t* f = fig0.f;
@@ -72,7 +72,7 @@ bool fig0_14(fig0_common_t& fig0, int indent)
FEC_scheme = f[i] & 0x3;
sprintf(desc, "SubChId=0x%X, FEC scheme=%d %s",
SubChId, FEC_scheme, FEC_schemes_str[FEC_scheme]);
- printbuf(desc, indent+1, NULL, 0);
+ printbuf(desc, disp+1, NULL, 0);
i++;
}