diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-01-16 13:54:01 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-01-16 13:54:01 +0100 |
commit | 1df947bae7346948e08edb75616d34fcf8802dae (patch) | |
tree | 4f26efa73b82c3404f8bedbe5efae732afb570b2 /src/utils.cpp | |
parent | adcee856b3628f013d31ed890bf1a28cb4d688cd (diff) | |
download | etisnoop-1df947bae7346948e08edb75616d34fcf8802dae.tar.gz etisnoop-1df947bae7346948e08edb75616d34fcf8802dae.tar.bz2 etisnoop-1df947bae7346948e08edb75616d34fcf8802dae.zip |
Add FIG2 label decoding with draft TS 103 176 v2.2.1 support
Diffstat (limited to 'src/utils.cpp')
-rw-r--r-- | src/utils.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/utils.cpp b/src/utils.cpp index 2d5af6a..f69b013 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -305,15 +305,3 @@ int absolute_to_dB(int16_t value) return value ? round(20*log10((double)value / int16_max)) : -90; } -std::string flag_to_shortlabel(const std::string& label, uint16_t flag) -{ - stringstream shortlabel; - for (size_t i = 0; i < label.size(); ++i) { - if (flag & 0x8000 >> i) { - shortlabel << label[i]; - } - } - - return shortlabel.str(); -} - |