diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-11-13 13:10:30 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-11-13 13:10:30 +0100 |
commit | cba531bbad8481db47318ac8146c54252100f2ad (patch) | |
tree | 3352e929cfee28b7ebb6003eff9b32d932a9301c /src/fig0_10.cpp | |
parent | a1415d55cd2db58ff5469cabe64efb9ff29dcec0 (diff) | |
download | etisnoop-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_10.cpp')
-rw-r--r-- | src/fig0_10.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fig0_10.cpp b/src/fig0_10.cpp index b02edfa..3c01547 100644 --- a/src/fig0_10.cpp +++ b/src/fig0_10.cpp @@ -31,7 +31,7 @@ // FIG 0/10 Date and time // ETSI EN 300 401 8.1.3.1 -bool fig0_10(fig0_common_t& fig0, int indent) +bool fig0_10(fig0_common_t& fig0, const display_settings_t &disp) { char desc[256]; char dateStr[256]; @@ -61,12 +61,12 @@ bool fig0_10(fig0_common_t& fig0, int indent) sprintf(desc, "FIG 0/%d(long): MJD=0x%X %s, LSI %u, ConfInd %u, UTC Time: %02d:%02d:%02d.%d", fig0.ext(), MJD, dateStr, LSI, ConfInd, hours, minutes, seconds, milliseconds); - printbuf(desc, indent+1, NULL, 0); + printbuf(desc, disp+1, NULL, 0); } else { sprintf(desc, "FIG 0/%d(short): MJD=0x%X %s, LSI %u, ConfInd %u, UTC Time: %02d:%02d", fig0.ext(), MJD, dateStr, LSI, ConfInd, hours, minutes); - printbuf(desc, indent+1, NULL, 0); + printbuf(desc, disp+1, NULL, 0); } return true; |