diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-05-01 12:01:29 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-05-01 12:01:29 +0200 |
commit | 5a863f88de5e63f1112e8701fa90f58e7de6b608 (patch) | |
tree | 3b4ba24852d4ce7316f355c54285b74b58c49c99 | |
parent | b9d9c262872c044310536bdd4c009cb52a1036e5 (diff) | |
download | etisnoop-5a863f88de5e63f1112e8701fa90f58e7de6b608.tar.gz etisnoop-5a863f88de5e63f1112e8701fa90f58e7de6b608.tar.bz2 etisnoop-5a863f88de5e63f1112e8701fa90f58e7de6b608.zip |
Fix FIG0/21 AMSS and DRM frequency parsing
-rw-r--r-- | src/fig0_21.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fig0_21.cpp b/src/fig0_21.cpp index 8910b0c..afe3782 100644 --- a/src/fig0_21.cpp +++ b/src/fig0_21.cpp @@ -364,11 +364,11 @@ fig_result_t fig0_21(fig0_common_t& fig0, const display_settings_t &disp) } // entries are 16bit freq const uint16_t freq = - ((((uint16_t)f[i+1] & 0x7f) << 8) | - (uint16_t)f[i+2]); + ((((uint16_t)f[i] & 0x7f) << 8) | + (uint16_t)f[i+1]); i += bytes_per_entry; - if (freq == 0) { + if (freq != 0) { r.msgs.emplace_back(2, strprintf("%d KHz", freq)); } |