diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-15 10:40:01 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-15 10:40:01 +0100 |
commit | f183429878b305b0e8766aa68a88b96f2d9c1fd0 (patch) | |
tree | 39816a01e34587372bd754eb72b233c7f85cd017 /src/fig0_1.cpp | |
parent | baf3f64d01136e3a1e272d9a0e93ced59a27354e (diff) | |
download | etisnoop-f183429878b305b0e8766aa68a88b96f2d9c1fd0.tar.gz etisnoop-f183429878b305b0e8766aa68a88b96f2d9c1fd0.tar.bz2 etisnoop-f183429878b305b0e8766aa68a88b96f2d9c1fd0.zip |
Fix EEP_B in YAML
Diffstat (limited to 'src/fig0_1.cpp')
-rw-r--r-- | src/fig0_1.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/fig0_1.cpp b/src/fig0_1.cpp index f8f9a1b..d878677 100644 --- a/src/fig0_1.cpp +++ b/src/fig0_1.cpp @@ -89,14 +89,22 @@ fig_result_t fig0_1(fig0_common_t& fig0, const display_settings_t &disp) r.msgs.push_back(strprintf("EEP %d-B", protection_level+1)); } else { - r.errors.push_back(strprintf("Invalid option %d protection %d", option, protection_level)); + r.errors.push_back(strprintf("Invalid option %d protection %d", + option, protection_level)); } r.msgs.push_back(strprintf("subch size %d", subchannel_size)); if (fig0.fibcrccorrect) { auto& subch = fig0.ensemble.get_subchannel(subch_id); - subch.protection_option = option; + using ensemble_database::subchannel_t; + using eep_t = subchannel_t::protection_eep_option_t; + if (option == 0x00) { + subch.protection_option = eep_t::EEP_A; + } + else { + subch.protection_option = eep_t::EEP_B; + } subch.protection_level = protection_level; subch.size = subchannel_size; } |