From cba531bbad8481db47318ac8146c54252100f2ad Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 13 Nov 2016 13:10:30 +0100 Subject: Add first filter to display only some FIGs TODO: many FIGs print without using printbuf, fir which the filter doesn't work yet. --- src/fig0_13.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fig0_13.cpp') diff --git a/src/fig0_13.cpp b/src/fig0_13.cpp index ffb5b89..36c36df 100644 --- a/src/fig0_13.cpp +++ b/src/fig0_13.cpp @@ -73,7 +73,7 @@ std::string get_fig_0_13_userapp(int user_app_type) // FIG 0/13 User application information // ETSI EN 300 401 8.1.20 -bool fig0_13(fig0_common_t& fig0, int indent) +bool fig0_13(fig0_common_t& fig0, const display_settings_t &disp) { uint32_t SId; uint8_t SCIdS; @@ -111,7 +111,7 @@ bool fig0_13(fig0_common_t& fig0, int indent) sprintf(desc, "FIG %d/%d: SId=0x%X SCIdS=%u No=%u", figtype, fig0.ext(), SId, SCIdS, No); - printbuf(desc, indent+1, NULL, 0); + printbuf(desc, disp+1, NULL, 0); for (int numapp = 0; numapp < No; numapp++) { uint16_t user_app_type = ((f[k] << 8) | @@ -123,7 +123,7 @@ bool fig0_13(fig0_common_t& fig0, int indent) user_app_type, get_fig_0_13_userapp(user_app_type).c_str(), user_app_len); - printbuf(desc, indent+2, NULL, 0); + printbuf(desc, disp+2, NULL, 0); } return complete; -- cgit v1.2.3